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