Fix position in test case

The test case was not actually testing the edge case...
This commit is contained in:
JohnnyMorganz 2022-05-18 18:10:33 +01:00
parent 2a1849f135
commit e9577a3b9e

View file

@ -98,7 +98,7 @@ TEST_CASE_FIXTURE(Fixture, "ast_ancestry_at_eof")
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);
AstStat* parentStat = ancestry[ancestry.size() - 2]->asStat();
REQUIRE(bool(parentStat));