mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix position in test case
The test case was not actually testing the edge case...
This commit is contained in:
parent
2a1849f135
commit
e9577a3b9e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ TEST_CASE_FIXTURE(Fixture, "ast_ancestry_at_eof")
|
||||||
if true then
|
if true then
|
||||||
)");
|
)");
|
||||||
|
|
||||||
std::vector<AstNode*> ancestry = findAstAncestryOfPosition(*getMainSourceModule(), Position(2, 3));
|
std::vector<AstNode*> ancestry = findAstAncestryOfPosition(*getMainSourceModule(), Position(2, 4));
|
||||||
REQUIRE_GE(ancestry.size(), 2);
|
REQUIRE_GE(ancestry.size(), 2);
|
||||||
AstStat* parentStat = ancestry[ancestry.size() - 2]->asStat();
|
AstStat* parentStat = ancestry[ancestry.size() - 2]->asStat();
|
||||||
REQUIRE(bool(parentStat));
|
REQUIRE(bool(parentStat));
|
||||||
|
|
Loading…
Add table
Reference in a new issue