Support for list literals in Lambdas
This commit is contained in:
@ -341,6 +341,10 @@ lambdas = testGroup "Lambda Evaluation Tests"
|
||||
, testCase "Lambda with a list literal" $ do
|
||||
let input = "f = (\\x : x)\nf [t (t t)]"
|
||||
runTricu input @?= "Fork Leaf (Fork (Stem Leaf) Leaf)"
|
||||
|
||||
, testCase "Lambda with list literal" $ do
|
||||
let input = "(\\a : [(a)]) 1"
|
||||
runTricu input @?= "Fork (Fork (Stem Leaf) Leaf) Leaf"
|
||||
]
|
||||
|
||||
providedLibraries :: TestTree
|
||||
|
Reference in New Issue
Block a user