Fixed types for tests in map.rkt.
This commit is contained in:
parent
4dd0a08dbf
commit
14a32177ef
|
@ -292,22 +292,22 @@
|
||||||
: (Listof Number)
|
: (Listof Number)
|
||||||
'(1 2 3))
|
'(1 2 3))
|
||||||
(check-equal?: (map: cdr '((1 b x) (2 c) (3 d)))
|
(check-equal?: (map: cdr '((1 b x) (2 c) (3 d)))
|
||||||
: (Listof Number)
|
: (Listof (Listof Symbol))
|
||||||
'((b x) (c) (d)))
|
'((b x) (c) (d)))
|
||||||
(check-equal?: (map: car (map: cdr '((1 b x) (2 c) (3 d))))
|
(check-equal?: (map: car (map: cdr '((1 b x) (2 c) (3 d))))
|
||||||
: (Listof Number)
|
: (Listof Symbol)
|
||||||
'(b c d))
|
'(b c d))
|
||||||
(check-equal?: (map: (compose) '((1 b x) (2 c) (3 d)))
|
(check-equal?: (map: (compose) '((1 b x) (2 c) (3 d)))
|
||||||
: (Listof Number)
|
: (Listof (Listof (U Number Symbol)))
|
||||||
'((1 b x) (2 c) (3 d)))
|
'((1 b x) (2 c) (3 d)))
|
||||||
(check-equal?: (map: (compose car) '((1 b x) (2 c) (3 d)))
|
(check-equal?: (map: (compose car) '((1 b x) (2 c) (3 d)))
|
||||||
: (Listof Number)
|
: (Listof Number)
|
||||||
'(1 2 3))
|
'(1 2 3))
|
||||||
(check-equal?: (map: (compose cdr) '((1 b x) (2 c) (3 d)))
|
(check-equal?: (map: (compose cdr) '((1 b x) (2 c) (3 d)))
|
||||||
: (Listof Number)
|
: (Listof (Listof Symbol))
|
||||||
'((b x) (c) (d)))
|
'((b x) (c) (d)))
|
||||||
(check-equal?: (map: (compose car cdr) '((1 b x) (2 c) (3 d)))
|
(check-equal?: (map: (compose car cdr) '((1 b x) (2 c) (3 d)))
|
||||||
: (Listof Number)
|
: (Listof Symbol)
|
||||||
'(b c d))
|
'(b c d))
|
||||||
(check-equal?: (map: (compose add1 car) '((1 b x) (2 c) (3 d)))
|
(check-equal?: (map: (compose add1 car) '((1 b x) (2 c) (3 d)))
|
||||||
: (Listof Number)
|
: (Listof Number)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user