More test cases

This commit is contained in:
Justin Ethier 2018-01-24 18:14:52 -05:00
parent eb8b332d2e
commit 3222f36912

View file

@ -14,6 +14,15 @@
)
(test-group
"predicates"
;; Fails on cyclone, works on chibi
;(test "test" (match "test" ((? string? s) s) (else #f)))
(test #(fromlist 1 2) (match '(1 2) ((a b) (vector 'fromlist a b))))
(test #f (match 42 (X #f)))
)
#;(test-group
"official tests"
(test 2 (match (list 1 2 3) ((a b c) b)) )