]> gitweb.michael.orlitzky.com - hath.git/blobdiff - test/TestSuite.hs
Added a "test" directory containing the test suite of HUnit tests.
[hath.git] / test / TestSuite.hs
diff --git a/test/TestSuite.hs b/test/TestSuite.hs
new file mode 100644 (file)
index 0000000..897807f
--- /dev/null
@@ -0,0 +1,15 @@
+import Test.HUnit
+
+import Cidr (cidr_tests)
+import IPv4Address (ipv4address_tests)
+import Maskable (maskable_tests)
+import Octet (octet_tests)
+
+test_suite = TestList (concat [cidr_tests,
+                               ipv4address_tests,
+                               maskable_tests,
+                               octet_tests])
+
+main :: IO Counts
+main = do
+  runTestTT test_suite