Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 29, 2024
1 parent f52d207 commit 0bbc66f
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 23 deletions.
16 changes: 8 additions & 8 deletions tree_sitter_v/test/corpus/comments.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module foo
--------------------------------------------------------------------------------

(source_file
(comment)
(comment)
(line_comment)
(block_comment)
(module_clause
(identifier)))

Expand All @@ -21,8 +21,8 @@ module foo
--------------------------------------------------------------------------------

(source_file
(comment)
(comment)
(line_comment)
(line_comment)
(module_clause
(identifier)))

Expand All @@ -37,7 +37,7 @@ module foo
--------------------------------------------------------------------------------

(source_file
(comment)
(block_comment)
(module_clause
(identifier)))

Expand Down Expand Up @@ -69,8 +69,8 @@ module foo
--------------------------------------------------------------------------------

(source_file
(comment)
(comment)
(block_comment)
(line_comment)
(module_clause
(identifier))
(comment))
(block_comment))
4 changes: 2 additions & 2 deletions tree_sitter_v/test/corpus/function_declaration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ fn foo() {}
--------------------------------------------------------------------------------

(source_file
(comment)
(line_comment)
(function_declaration
(attributes
(attribute
Expand Down Expand Up @@ -535,7 +535,7 @@ pub fn C.foo[T, U, ](foo string, age ...int) !(int, string, ) {}
--------------------------------------------------------------------------------

(source_file
(comment)
(line_comment)
(function_declaration
(attributes
(attribute
Expand Down
2 changes: 1 addition & 1 deletion tree_sitter_v/test/corpus/interface_declaration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ interface Foo {
--------------------------------------------------------------------------------

(source_file
(comment)
(line_comment)
(interface_declaration
(attributes
(attribute
Expand Down
6 changes: 3 additions & 3 deletions tree_sitter_v/test/corpus/is_as_expression.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn test_parse_compact_text() {
--------------------------------------------------------------------------------

(source_file
(comment)
(line_comment)
(function_declaration
(visibility_modifiers)
(receiver
Expand Down Expand Up @@ -694,8 +694,8 @@ fn test_parse_compact_text() {
(identifier))
(type_reference_expression
(identifier)))))))))))
(comment)
(comment)
(line_comment)
(line_comment)
(simple_statement
(var_declaration
(expression_list
Expand Down
8 changes: 4 additions & 4 deletions tree_sitter_v/test/corpus/module_clause.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module main
--------------------------------------------------------------------------------

(source_file
(comment)
(comment)
(line_comment)
(line_comment)
(module_clause
(identifier)))

Expand Down Expand Up @@ -49,8 +49,8 @@ module main
--------------------------------------------------------------------------------

(source_file
(comment)
(comment)
(line_comment)
(line_comment)
(module_clause
(attributes
(attribute
Expand Down
6 changes: 3 additions & 3 deletions tree_sitter_v/test/corpus/select_expression.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ if select {
(reference_expression
(identifier))))
(block
(comment))))
(line_comment))))
(block
(comment))
(line_comment))
(else_branch
(block
(comment))))))
(line_comment))))))
2 changes: 1 addition & 1 deletion tree_sitter_v/test/corpus/struct_declaration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct Foo {
--------------------------------------------------------------------------------

(source_file
(comment)
(line_comment)
(struct_declaration
(attributes
(attribute
Expand Down
5 changes: 4 additions & 1 deletion tree_sitter_v/test/corpus/type_declaration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,7 @@ type Height =
(plain_type
(type_reference_expression
(identifier))))
(ERROR))
(ERROR
(plain_type
(type_reference_expression
(MISSING identifier)))))

0 comments on commit 0bbc66f

Please sign in to comment.