Skip to content

Commit

Permalink
add unit tests #433 #432
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 25, 2025
1 parent 6b332b6 commit 67cc2f2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@

(unset-special! "#:num")

(set-special! "*|" 'multply-inline)

(define (multply-inline x) `(* ,@x))

(define parser/t11 '*|(1 2 3)) ;; |

(test "parser: #!fold-case"
(lambda (t)
(define foo 10)
Expand Down Expand Up @@ -333,3 +339,7 @@
(parser.prepare code)
(lips.parse parser))
(catch (e) e)))))

(test "parser: regex characters in syntax extension"
(lambda (t)
(t.is parser/t11 '(* 1 2 3))))

0 comments on commit 67cc2f2

Please sign in to comment.