| module Main where | |
| import Test.HUnit | |
| --Program start | |
| --Program end | |
| -- Test cases | |
| test1 :: Test | |
| test1 = TestCase (assertEqual "for (repeatLimitedString \"cczazcc \" 3)," "zzcccac" (repeatLimitedString "cczazcc" 3)) | |
| test2 :: Test | |
| test2 = TestCase (assertEqual "for (repeatLimitedString \"aababab \" 2)," "bbabaa" (repeatLimitedString "aababab" 2)) | |
| -- Grouping test cases | |
| tests :: Test | |
| tests = TestList [TestLabel "Test1" test1] | |
| -- Running the tests | |
| main :: IO Counts | |
| main = runTestTT tests | |