From bc404348ec9012eb08e08e29e8caf80dda73247f Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 9 Oct 2024 01:24:53 -0600 Subject: Prepare code to make testing much easier. This is primarily done by making more things json and by instrumenting which stage in compilation to dump and others. This means I can make bash scripts for end to end testing. --- test/Spec.hs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/Spec.hs (limited to 'test') diff --git a/test/Spec.hs b/test/Spec.hs new file mode 100644 index 0000000..834ade8 --- /dev/null +++ b/test/Spec.hs @@ -0,0 +1,7 @@ +import Test.Hspec + +main :: IO () +main = hspec $ do + describe "add" $ do + it "adds two positive numbers" $ do + 2 + 3 `shouldBe` 5 -- cgit