summaryrefslogtreecommitdiff
path: root/tests/lean
diff options
context:
space:
mode:
authorJonathan Protzenko2023-02-03 11:00:38 -0800
committerSon HO2023-06-04 21:44:33 +0200
commite837bc8452496a1f3f5af568c000b9c1c5c5919a (patch)
tree99890e93775a0db7a9a5e2314b5a78239d86b180 /tests/lean
parentf09eabd7c0fce7c20a0124749c841cbf5b550c52 (diff)
Make sure Main runs some code
Diffstat (limited to '')
-rw-r--r--tests/lean/hashmap_on_disk/Main.lean9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/lean/hashmap_on_disk/Main.lean b/tests/lean/hashmap_on_disk/Main.lean
index 9fe6cf4a..e87a933a 100644
--- a/tests/lean/hashmap_on_disk/Main.lean
+++ b/tests/lean/hashmap_on_disk/Main.lean
@@ -1,5 +1,10 @@
-import «HashmapMain»
import Base.Primitives
+import HashmapMain.Funs
+
+#eval hashmap_test1_fwd == .ret ()
def main : IO Unit :=
- IO.println s!"Hello, {hello}!"
+ if hashmap_test1_fwd == .ret () then
+ IO.println s!"Test OK"
+ else
+ throw (IO.userError s!"Test failed")