Skip to content

Commit 42cadbc

Browse files
committed
fix: java program symbol tests
Signed-off-by: peefy <xpf6677@163.com>
1 parent f6b0956 commit 42cadbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/test/java/com/kcl/LoadPackageTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void testProgramSymbols() throws Exception {
3333
// Variable definitions in the main scope.
3434
Scope mainScope = SematicUtil.findMainPackageScope(result);
3535
// Child scopes of the main scope.
36-
Assert.assertEquals(mainScope.getChildrenList().size(), 2);
36+
Assert.assertEquals(mainScope.getChildrenList().size(), 3);
3737
// Mapping AST node to Symbol type
3838
NodeRef<Stmt> stmt = program.getFirstModule().getBody().get(0);
3939
Assert.assertTrue(SematicUtil.findSymbolByAstId(result, stmt.getId()).getName().contains("pkg"));
@@ -70,7 +70,7 @@ public void testProgramSymbolsWithCache() throws Exception {
7070
// Variable definitions in the main scope.
7171
Scope mainScope = SematicUtil.findMainPackageScope(result);
7272
// Child scopes of the main scope.
73-
Assert.assertEquals(mainScope.getChildrenList().size(), 2);
73+
Assert.assertEquals(mainScope.getChildrenList().size(), 3);
7474
// Mapping AST node to Symbol type
7575
NodeRef<Stmt> stmt = program.getFirstModule().getBody().get(0);
7676
Assert.assertTrue(SematicUtil.findSymbolByAstId(result, stmt.getId()).getName().contains("pkg"));

0 commit comments

Comments
 (0)