DatasetRepo's picture
39a8ae557bafed1b5e5736c10b5897d38635ffc981d13fa842f1ce72e4046229
f6ac8cb verified
raw
history blame
467 Bytes
module Main where
import Test.HUnit
--Program start
--Program end
-- Test cases
test1 :: Test
test1 = TestCase (assertEqual "for (applyOperations [1,2,2,1,1,0])," [1,4,2,0,0,0] (applyOperations [1,2,2,1,1,0]))
test2 :: Test
test2 = TestCase (assertEqual "for (applyOperations [0,1])," [1,0] (applyOperations [0,1]))
-- Grouping test cases
tests :: Test
tests = TestList [TestLabel "Test1" test1]
-- Running the tests
main :: IO Counts
main = runTestTT tests