Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 45a8134

Browse files
committed
tests: update tests for kotlin grammar
1 parent 6ba5b5d commit 45a8134

File tree

1 file changed

+1
-1
lines changed
  • android-tree-sitter/src/test/java/com/itsaky/androidide/treesitter

1 file changed

+1
-1
lines changed

android-tree-sitter/src/test/java/com/itsaky/androidide/treesitter/ParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void testKotlinGrammar() {
180180
assertThat(rootNode).isNotNull();
181181
assertThat(rootNode.getChildCount()).isGreaterThan(0);
182182
assertThat(rootNode.getNodeString()).isEqualTo(
183-
"(source_file (class_declaration (type_identifier) (class_body (function_declaration (simple_identifier) (function_value_parameters) (function_body (statements (call_expression (simple_identifier) (call_suffix (value_arguments (value_argument (string_literal)))))))))))");
183+
"(source_file (class_declaration name: (type_identifier) body: (class_body (function_declaration name: (simple_identifier) parameters: (function_value_parameters) body: (function_body (statements (call_expression (simple_identifier) (call_suffix (value_arguments (value_argument (string_literal)))))))))))");
184184
}
185185
}
186186
}

0 commit comments

Comments
 (0)