Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bonede committed Oct 19, 2024
1 parent 7a6ce51 commit e9d3cb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tree-sitter/src/main/java/org/treesitter/TSLanguage.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public TSSymbolType symbolType(int symbol){
switch (type){
case 0: return TSSymbolType.TSSymbolTypeRegular;
case 1: return TSSymbolType.TSSymbolTypeAnonymous;
case 2: return TSSymbolType.TSSymbolTypeAuxiliary;
case 2: return TSSymbolType.TSSymbolTypeSupertype;
case 3: return TSSymbolType.TSSymbolTypeAuxiliary;
default: throw new TSException("Can't handle symbol type: %d" + type);
}
}
Expand Down
4 changes: 2 additions & 2 deletions tree-sitter/src/test/java/org/treesitter/TSLanguageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void symbolType() {

@Test
void symbolCount() {
assertEquals(26, json.symbolCount());
assertEquals(25, json.symbolCount());
}

@Test
Expand All @@ -55,7 +55,7 @@ void copy(){

@Test
void stateCount(){
assertEquals(33, json.stateCount());
assertEquals(32, json.stateCount());
}

@Test
Expand Down

0 comments on commit e9d3cb1

Please sign in to comment.