aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Unit.hs
blob: a04098b7572568b126361bc1c80be58aae1ab2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Unit (unitTests) where

import           Test.Tasty
import           Test.Tasty.HUnit

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] @?= GT
  ]