init
This commit is contained in:
commit
7008596f4c
58 changed files with 1197 additions and 0 deletions
10
test/ParserSpec.hs
Normal file
10
test/ParserSpec.hs
Normal 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"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue