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 0e365eb
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm install --dev
- run: npm test
- run: tree-sitter parse test/*.just
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 0e365eb

Please sign in to comment.