summaryrefslogtreecommitdiff
path: root/lambda-calcul/haskell/test/Minilang/REPLSpec.hs
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud@pankzsoft.com>2025-11-06 08:35:36 +0100
committerArnaud Bailly <arnaud@pankzsoft.com>2025-11-06 08:35:36 +0100
commitb87d5b45110cd7efe7109dd6d4e9c19ef28522aa (patch)
tree2fd831c479523b8a77d6a721e00ec5b610a7b111 /lambda-calcul/haskell/test/Minilang/REPLSpec.hs
parent6d35fd9630238375cc28a282780f597421107469 (diff)
downloadlambda-nantes-b87d5b45110cd7efe7109dd6d4e9c19ef28522aa.tar.gz
evaluate terms when defining them
Diffstat (limited to 'lambda-calcul/haskell/test/Minilang/REPLSpec.hs')
-rw-r--r--lambda-calcul/haskell/test/Minilang/REPLSpec.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lambda-calcul/haskell/test/Minilang/REPLSpec.hs b/lambda-calcul/haskell/test/Minilang/REPLSpec.hs
index 74f6c29..bd64adf 100644
--- a/lambda-calcul/haskell/test/Minilang/REPLSpec.hs
+++ b/lambda-calcul/haskell/test/Minilang/REPLSpec.hs
@@ -51,7 +51,7 @@ spec = parallel $
out
`shouldBe` [ "Bye!",
- "y : c",
+ "y : a",
"id : a -> a",
"Language set to Typed"
]
@@ -80,7 +80,7 @@ spec = parallel $
out
`shouldBe` [ "Bye!",
- "Cannot unify type variable f with type (e -> f -> e) -> e due to circularity: The variable already occurs in the type.",
+ "(lam (z s) (s ((lam (n z s) (s n)) (lam (z s) z)))) : a -> ((d -> ((g -> h -> g) -> f) -> f) -> j) -> j",
"Language set to Typed"
]