Skip to content

Commit

Permalink
add unit tests #417
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 10, 2024
1 parent b372c7e commit 23f19fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3,532 deletions.
9 changes: 9 additions & 0 deletions tests/parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,12 @@
(parser (new Parser (object :env env :meta true))))
(parser.prepare code)
(t.snapshot (parse parser)))))

(test "parser: lonely cosing paren"
(lambda (t)
(t.snapshot (try (let* ((code " )")
(env lips.env)
(parser (new lips.Parser (object :env env :meta true))))
(parser.prepare code)
(lips.parse parser))
(catch (e) e)))))
Loading

0 comments on commit 23f19fd

Please sign in to comment.