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