Skip to content

Commit

Permalink
Bless tests with current output
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 3, 2024
1 parent 323b788 commit 86b6929
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Treesitter grammar for Justfiles (casey/just)",
"main": "grammar.js",
"scripts": {
"test": "tree-sitter test",
"test": "tree-sitter test && tree-sitter parse test/*.json",
"gen": "tree-sitter generate",
"lint": "eslint grammar.js"
},
Expand Down
162 changes: 81 additions & 81 deletions test/corpus/statements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ foo := "abc"
(STRING))))
(eol
(NEWLINE)))))

================================================================================
expression
================================================================================
Expand All @@ -46,9 +46,8 @@ foo := "abc" + 'def'
(eol
(NEWLINE)))))


================================================================================
paths FIXME(paths) XFAIL from path operator
paths
================================================================================

relative := "abc" / 'def'
Expand All @@ -67,39 +66,40 @@ combined := "foo" / bar() / baz
(expression
(value
(string
(STRING))))
(ERROR
(INDENT)
(UNEXPECTED ')
(RAW_STRING))
(STRING)))
(expression
(value
(string
(RAW_STRING)))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(ERROR
(UNEXPECTED '))
(expression
(value
(NAME)))
(ERROR)
(cmd
(MISSING BACKTICK)))
(expression
(value
(string
(STRING)))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(ERROR
(expression
(value
(string
(STRING)))
(UNEXPECTED ')
(value
(call
(NAME)))
(UNEXPECTED '))
(expression
(value
(NAME)))
(expression
(value
(call
(NAME)))
(expression
(value
(NAME)))))
(eol
(NEWLINE)))))

Expand All @@ -122,67 +122,67 @@ corge := "foo\"bar"
--------------------------------------------------------------------------------

(source_file
(item
(item
(eol
(NEWLINE)))
(item
(assignment
(NAME)
(expression
(value
(string
(STRING))))
(eol
(NEWLINE)))
(item
(assignment
(NAME)
(expression
(value
(string
(STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(RAW_STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(INDENTED_STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(INDENTED_RAW_STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(ERROR
(value
(string
(STRING))))
(expression
(value
(NAME)))
(ERROR)
(eol
(NEWLINE)))))
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(RAW_STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(INDENTED_STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(expression
(value
(string
(INDENTED_RAW_STRING))))
(eol
(NEWLINE))))
(item
(assignment
(NAME)
(ERROR
(value
(string
(STRING))))
(expression
(value
(NAME)))
(ERROR)
(eol
(NEWLINE)))))

================================================================================
if
Expand Down

0 comments on commit 86b6929

Please sign in to comment.