function tricks test defined (Sam's trials)

This commit is contained in:
Umur Ozkul 2022-05-02 12:23:37 +02:00
parent c0fad8c668
commit 1e673e54c3

View File

@ -1,6 +1,17 @@
open Jest
open Reducer_TestHelpers
describe("function trics", () => {
testEvalToBe("1", "Ok(1)")
Skip.describe("function trics", () => {
testEvalToBe("f(x,y)=x(y); f(f)", "????")
testEvalToBe("f(x)=x(y); f(f)", "????")
testEvalToBe("f(x)=x; f(f)", "????")
testEvalToBe("f(x,y)=x(y); f(z)", "????")
testEvalToBe("f(x,y)=x(y); f(2)", "????") //prevent js error
testEvalToBe("f(x)=f(y)=2; f(2)", "????") //prevent multiple assignment
testEvalToBe("f(x)=x+1; g(x)=f(x)+1;g(2)", "????") //TODO: f is not found
testEvalToBe("y=2;g(x)=y+1;g(2)", "????") //TODO : y is not found
testEvalToBe("y=2;g(x)=inspect(y)+1", "????") //TODO : 666
testEvalToBe("f(x,y)=x+y; f(1,2,3,4)", "????") //TODO : arity))
testEvalToBe("f(x,y)=x+y; f(1)", "????") //TODO : arity))
})