|
|
| module Main where |
| import Test.HUnit |
|
|
| |
|
|
| |
|
|
| |
|
|
| test1 :: Test |
| test1 = TestCase (assertEqual "for (checkDistances \"abaccb \" [1,3,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])," True (checkDistances "abaccb" [1,3,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])) |
|
|
| test2 :: Test |
| test2 = TestCase (assertEqual "for (checkDistances \"aa \" [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])," False (checkDistances "aa" [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])) |
|
|
|
|
| |
| tests :: Test |
| tests = TestList [TestLabel "Test1" test1] |
|
|
| |
| main :: IO Counts |
| main = runTestTT tests |
|
|