DataRepo's picture
Duplicate from FPEvalDataset/LeetCodeProblem
f7c0146 verified
raw
history blame contribute delete
454 Bytes
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