lish/src-test/Lish/Test/Parser.hs
Yann Esposito (Yogsototh) f0301d3c4e
first non trivial test
2017-02-27 08:54:54 +01:00

19 lines
393 B
Haskell

{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Lish.Test.Parser
where
import Protolude
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.SmallCheck
import Lish.Parser
import Lish.Types
parseTests :: [TestTree]
parseTests =
[ testCase "simple commands" simpleCommand ]
simpleCommand :: Assertion
simpleCommand = parseCmd "ls" @?= Right (Atom "ls")