lamb/test/ParserSpec.hs
jackjohn7 7008596f4c init
2026-05-14 22:59:58 -05:00

10 lines
263 B
Haskell

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"))