Skip to content

Commit

Permalink
chore: move corpus under test/ and add anchor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Feb 13, 2024
1 parent 5ba058c commit 1f38ab1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion corpus/statements.txt → test/corpus/statements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ Predicates
(identifier)))))

================================================================================
Immediate Child Operator
Anchor Operator
================================================================================

((comment) . (function_declaration))
Expand Down Expand Up @@ -367,6 +367,8 @@ Immediate Child Operator
(node name: (identifier) . another: (identifier) .)
(node name: (identifier) . another: (identifier))

(trailing_anchor ((grouping_anchor) .) .)

--------------------------------------------------------------------------------

(program
Expand Down Expand Up @@ -587,6 +589,11 @@ Immediate Child Operator
name: (identifier)))
(field_definition
name: (identifier)
(named_node
name: (identifier))))
(named_node
name: (identifier)
(grouping
(named_node
name: (identifier)))))

Expand Down

0 comments on commit 1f38ab1

Please sign in to comment.