aboutsummaryrefslogtreecommitdiff
path: root/test/Main.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-14 23:41:18 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-14 23:41:18 +0100
commita9c6c592595d1b893e10c5d682146c003f8ec1c1 (patch)
tree846e52092843643dfa4c42323ef1b027e0956ed8 /test/Main.hs
parent641de5e4f68385da3b53bfc532c2d6585a6d958d (diff)
downloadmicro-lang-hs-a9c6c592595d1b893e10c5d682146c003f8ec1c1.tar.gz
micro-lang-hs-a9c6c592595d1b893e10c5d682146c003f8ec1c1.zip
Introduced tests
Diffstat (limited to 'test/Main.hs')
-rw-r--r--test/Main.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Main.hs b/test/Main.hs
new file mode 100644
index 0000000..a5d03a3
--- /dev/null
+++ b/test/Main.hs
@@ -0,0 +1,8 @@
+import Language (language)
+import System.Exit
+import Test.HUnit
+
+main :: IO Counts
+main = do
+ counts <- runTestTT $ test language
+ if errors counts + failures counts == 0 then exitSuccess else exitFailure