Skip to content

Commit

Permalink
fix unit tests #416
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 11, 2024
1 parent 8f20afb commit 12917e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tests/parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,10 @@

(test "parser: should throw an error on extra close paren"
(lambda (t)
(t.is (try
(t.snapshot (try
(lips.exec "(define x 10))")
(catch (e)
e.message))
"Parser: unexpected parenthesis")))
e.message)))))

(test "parser: should process line after comment without text #260"
(lambda (t)
Expand Down
8 changes: 7 additions & 1 deletion tests/snapshots/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -23831,6 +23831,12 @@ Generated by [AVA](https://avajs.dev).
},
}

## parser: should throw an error on extra close paren

> Snapshot 1

'Parser: unexpected parenthesis at line 1 and column 11'

## lexer: with meta data

> Snapshot 1
Expand Down Expand Up @@ -60275,7 +60281,7 @@ Generated by [AVA](https://avajs.dev).
__col__: 4,
__line__: 0,
__offset__: 4,
message: 'Parser: unexpected parenthesis',
message: 'Parser: unexpected parenthesis at line 1 and column 5',
}

## std: should render SXML string
Expand Down
Binary file modified tests/snapshots/test.js.snap
Binary file not shown.

0 comments on commit 12917e0

Please sign in to comment.