From e837bc8452496a1f3f5af568c000b9c1c5c5919a Mon Sep 17 00:00:00 2001 From: Jonathan Protzenko Date: Fri, 3 Feb 2023 11:00:38 -0800 Subject: Make sure Main runs some code --- tests/lean/hashmap_on_disk/Main.lean | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/lean') 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") -- cgit v1.2.3