From 82b9e3f4bf70e911916cf000655cdae2492060df Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 25 Sep 2022 23:37:49 +0300 Subject: Add a test to suite --- test/Spec.hs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'test/Spec.hs') diff --git a/test/Spec.hs b/test/Spec.hs index cd4753f..cbe73d7 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -1,2 +1,15 @@ +{-# OPTIONS_GHC -Wno-missing-signatures #-} +import Test.HUnit +import Control.Monad.Except +import Tokenizer ( tokenize ) +import TestUtils + +test1 = (runLContext $ tokenize "+ 1 2") + >>= assertEqual "tokenize \"+ 1 2\"" ["+", "1", "2"] + +tests = TestList $ map TestCase [ + test1 + ] + main :: IO () -main = putStrLn "Test suite not yet implemented" +main = void $ runTestTT tests -- cgit v1.3