This commit is contained in:
jackjohn7 2026-05-14 22:59:58 -05:00
commit 7008596f4c
58 changed files with 1197 additions and 0 deletions

8
test/EvaluationSpec.hs Normal file
View file

@ -0,0 +1,8 @@
module EvaluationSpec (spec) where
import Test.Hspec
spec :: Spec
spec = do
describe "Evaluation" $ do
it "can evaluation expressions" $
True `shouldBe` True

10
test/ParserSpec.hs Normal file
View file

@ -0,0 +1,10 @@
module ParserSpec (spec) where
import Parser (Expr (Abstraction, Variable), parse)
import Test.Hspec
spec :: Spec
spec = do
describe "Parser" $ do
it "can parse basic expressions" $
(parse "λx.x") `shouldBe` Right (Abstraction ("x", Variable "x"))

1
test/Spec.hs Normal file
View file

@ -0,0 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}