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 5479342
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 82 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ jobs:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
env:
CXXFLAGS: "-std=c++11"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm test
- run: tree-sitter parse test/*.just
# FIXME: also parse tests/*.just
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 5479342

Please sign in to comment.