From e9577a3b9e7f74875b379ca209e49bd2389af9c0 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Wed, 18 May 2022 18:10:33 +0100 Subject: [PATCH] Fix position in test case The test case was not actually testing the edge case... --- tests/AstQuery.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/AstQuery.test.cpp b/tests/AstQuery.test.cpp index bafe18ce..f0017509 100644 --- a/tests/AstQuery.test.cpp +++ b/tests/AstQuery.test.cpp @@ -98,7 +98,7 @@ TEST_CASE_FIXTURE(Fixture, "ast_ancestry_at_eof") if true then )"); - std::vector ancestry = findAstAncestryOfPosition(*getMainSourceModule(), Position(2, 3)); + std::vector ancestry = findAstAncestryOfPosition(*getMainSourceModule(), Position(2, 4)); REQUIRE_GE(ancestry.size(), 2); AstStat* parentStat = ancestry[ancestry.size() - 2]->asStat(); REQUIRE(bool(parentStat));