Added tests for sequence/c with multiple-valued sequences.
This commit is contained in:
parent
5c4a5ceb81
commit
871ea6dc76
|
@ -85,7 +85,19 @@
|
||||||
(void)))
|
(void)))
|
||||||
(test-bad
|
(test-bad
|
||||||
(for ([x (with/c (sequence/c integer? symbol?) (list 1 2 3 4))])
|
(for ([x (with/c (sequence/c integer? symbol?) (list 1 2 3 4))])
|
||||||
(void))))
|
(void)))
|
||||||
|
(test-ok
|
||||||
|
(for ([(x y) (with/c (sequence/c integer? symbol?)
|
||||||
|
(in-dict (list (cons 1 'one) (cons 2 'two))))])
|
||||||
|
(void)))
|
||||||
|
(test-bad
|
||||||
|
(for ([(x y) (with/c (sequence/c integer? symbol?)
|
||||||
|
(in-dict (list (cons 1 'one) (cons 2 "two"))))])
|
||||||
|
(void)))
|
||||||
|
(test-bad
|
||||||
|
(for ([(x y) (with/c (sequence/c integer?)
|
||||||
|
(in-dict (list (cons 1 'one) (cons 2 'two))))])
|
||||||
|
(void))))
|
||||||
(test-suite "dict/c"
|
(test-suite "dict/c"
|
||||||
(test-ok
|
(test-ok
|
||||||
(for ([(x y)
|
(for ([(x y)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user