| module Main where | |
| import Test.HUnit | |
| --Program start | |
| --Program end | |
| -- Test cases | |
| test1 :: Test | |
| test1 = TestCase (assertEqual "for (xorAllNums [2,1,3] [10,2,5,0])," 13 (xorAllNums [2,1,3] [10,2,5,0])) | |
| test2 :: Test | |
| test2 = TestCase (assertEqual "for (xorAllNums [1,2] [3,4])," 0 (xorAllNums [1,2] [3,4])) | |
| -- Grouping test cases | |
| tests :: Test | |
| tests = TestList [TestLabel "Test1" test1] | |
| -- Running the tests | |
| main :: IO Counts | |
| main = runTestTT tests | |