[function] positive tests for curry
This commit is contained in:
parent
2472e3755a
commit
8e2b458aa7
15
test/function-pass.rkt
Normal file
15
test/function-pass.rkt
Normal file
|
@ -0,0 +1,15 @@
|
|||
#lang typed/racket/base
|
||||
|
||||
(module+ test
|
||||
(require
|
||||
trivial/function
|
||||
typed/rackunit)
|
||||
|
||||
(check-equal?
|
||||
(((curry: (lambda (x y) x)) 'x) 'y)
|
||||
'x)
|
||||
|
||||
(check-equal?
|
||||
((((curry: (lambda (x y z) z)) 0) 1) 2)
|
||||
2)
|
||||
)
|
Loading…
Reference in New Issue
Block a user