mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Start exposing ComponentDefinition to C++
This commit is contained in:
parent
9a8c6bf9f7
commit
3588d6ffbe
4 changed files with 123 additions and 3 deletions
|
@ -258,4 +258,16 @@ SCENARIO("Component Compiler")
|
|||
REQUIRE(out_paths[0] == "path1");
|
||||
REQUIRE(out_paths[1] == "path2");
|
||||
}
|
||||
|
||||
SECTION("Compile failure from source")
|
||||
{
|
||||
auto result = compiler.build_from_source("Syntax Error!!", "");
|
||||
REQUIRE_FALSE(result.has_value());
|
||||
}
|
||||
|
||||
SECTION("Compile from source")
|
||||
{
|
||||
auto result = compiler.build_from_source("export Dummy := Rectangle {}", "");
|
||||
REQUIRE(result.has_value());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue