Added tests for sequence/c with multiple-valued sequences.

This commit is contained in:
Carl Eastlund 2011-08-27 12:57:26 -04:00
parent 5c4a5ceb81
commit 871ea6dc76

View File

@ -85,6 +85,18 @@
(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)))
(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)))) (void))))
(test-suite "dict/c" (test-suite "dict/c"
(test-ok (test-ok