diff --git a/tests/parser.scm b/tests/parser.scm index aad6f454..e76976f9 100644 --- a/tests/parser.scm +++ b/tests/parser.scm @@ -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) diff --git a/tests/snapshots/test.js.md b/tests/snapshots/test.js.md index 90b01f63..85a9182a 100644 --- a/tests/snapshots/test.js.md +++ b/tests/snapshots/test.js.md @@ -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 @@ -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 diff --git a/tests/snapshots/test.js.snap b/tests/snapshots/test.js.snap index 70bbef89..efecf015 100644 Binary files a/tests/snapshots/test.js.snap and b/tests/snapshots/test.js.snap differ