From 52c687ebd389ae4b43096859e5137e10b4b68c78 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 30 Nov 2018 22:06:33 +0000 Subject: Rename the Test file --- tests/Test.hs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/Test.hs (limited to 'tests/Test.hs') diff --git a/tests/Test.hs b/tests/Test.hs new file mode 100644 index 0000000..b1958c3 --- /dev/null +++ b/tests/Test.hs @@ -0,0 +1,19 @@ +module Main where + +import Test.Tasty +import Test.Tasty.HUnit +import Test.Tasty.QuickCheck as QC + +unitTests = testGroup "Unit tests" + [ testCase "List comparison (different length)" $ + [1, 2, 3] `compare` [1,2] @?= GT + + -- the following test does not hold + , testCase "List comparison (same length)" $ + [1, 2, 3] `compare` [1,2,2] @?= LT + ] + +tests :: TestTree +tests = testGroup "Tests" [unitTests] + +main = defaultMain tests -- cgit