Add a test for partial evaluation
This is mostly in case I actually implement better functions of arity >1, but forget to add this test.
This commit is contained in:
parent
9a1b6fb177
commit
5c6f538f9e
2
src/tests/partial_eval.exp
Normal file
2
src/tests/partial_eval.exp
Normal file
|
@ -0,0 +1,2 @@
|
|||
42
|
||||
42
|
5
src/tests/partial_eval.lambda
Normal file
5
src/tests/partial_eval.lambda
Normal file
|
@ -0,0 +1,5 @@
|
|||
let sum = fun x -> fun y -> fun z -> x + y + z in
|
||||
let plus2 = sum 1 1 in
|
||||
|
||||
let _ = print (sum 30 10 2) in
|
||||
print (plus2 40)
|
Loading…
Reference in a new issue