Skip to content

Commit a46cd22

Browse files
committed
updated kotlin test
1 parent 0de3e3a commit a46cd22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlin/binding_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ fun main(args: Array<String>) {
2020
}
2121
`
2222

23-
var output = `(source_file (import_list (import_header (identifier (simple_identifier) (simple_identifier) (simple_identifier)))) (function_declaration (simple_identifier) (function_value_parameters (parameter (simple_identifier) (user_type (type_identifier) (type_arguments (type_projection (user_type (type_identifier))))))) (function_body (statements (property_declaration (variable_declaration (simple_identifier)) (call_expression (navigation_expression (simple_identifier) (navigation_suffix (simple_identifier))) (call_suffix (value_arguments)))) (call_expression (simple_identifier) (call_suffix (value_arguments (value_argument (string_literal (interpolated_identifier))))))))))`
23+
var output = `(source_file (import_list (import_header (identifier (simple_identifier) (simple_identifier) (simple_identifier)))) (function_declaration (simple_identifier) (function_value_parameters (parameter (simple_identifier) (user_type (type_identifier) (type_arguments (type_projection (user_type (type_identifier))))))) (function_body (statements (property_declaration (binding_pattern_kind) (variable_declaration (simple_identifier)) (call_expression (navigation_expression (simple_identifier) (navigation_suffix (simple_identifier))) (call_suffix (value_arguments)))) (call_expression (simple_identifier) (call_suffix (value_arguments (value_argument (string_literal (string_content) (interpolated_identifier))))))))))`
2424

2525
func TestGrammar(t *testing.T) {
2626
n, err := sitter.ParseCtx(context.Background(), []byte(ktCode), kotlin.GetLanguage())
2727
assert.Nil(t, err)
28-
assert.Equal(t, n.String(), output)
28+
assert.Equal(t, output, n.String())
2929
}

0 commit comments

Comments
 (0)