Skip to content

Commit

Permalink
unit test for Character emoji with more codepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 17, 2024
1 parent fe15152 commit 10b2d5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@
(t.is #t #t)
(t.is #t #t)))

(test "parser: character emoji"
(lambda (t)
(let ((x #\💩))
(t.is (--> x (valueOf) 'length) 2)
(t.is (length (Array.from (x.valueOf))) 1))))

(test "tokenizer: should create tokens for simple list"
(lambda (t)
(t.is (lips.tokenize "(foo bar baz)")
Expand Down

0 comments on commit 10b2d5a

Please sign in to comment.