mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-16 01:25:27 +00:00
Fix panic when getting the line, column of diagnostic with invalid span
Introduced in cbc0c790a3
This commit is contained in:
parent
84c4f817f1
commit
4076df928d
2 changed files with 8 additions and 0 deletions
|
@ -304,6 +304,8 @@ SCENARIO("Component Compiler")
|
|||
|
||||
REQUIRE(diags.size() == 1);
|
||||
REQUIRE(diags[0].message.starts_with("Could not load"));
|
||||
REQUIRE(diags[0].line == 0);
|
||||
REQUIRE(diags[0].column == 0);
|
||||
}
|
||||
|
||||
SECTION("Compile from path")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue