Skip to content

Commit

Permalink
fix typecheck unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 10, 2023
1 parent 2e25e78 commit 2c4183d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
45 changes: 23 additions & 22 deletions dist/lips.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/std.scm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
(lambda (t)
(t.is (to.throw (typecheck "test" 10 (list "string"))) true)
(t.is (try (typecheck "test" 10 (list "string") 0) (catch (e) e.message))
"Expecting string, got number in expression `test` (argument 0)")
"Expecting a string, got number in expression `test` (argument 0)")
(t.is (try (typecheck "test" 10 (list "string" "character") 0) (catch (e) e.message))
"Expecting string or character, got number in expression `test` (argument 0)")))

Expand Down

0 comments on commit 2c4183d

Please sign in to comment.