|
|
| module Main where |
| import Test.HUnit |
|
|
| |
| returnToBoundaryCount :: [Int] -> Int |
| returnToBoundaryCount nums = undefined |
|
|
| |
|
|
| |
|
|
| test1 :: Test |
| test1 = TestCase (assertEqual "for (returnToBoundaryCount [2,3,-5])," 1 (returnToBoundaryCount [2,3,-5])) |
|
|
| test2 :: Test |
| test2 = TestCase (assertEqual "for (returnToBoundaryCount [3,2,-3,-4])," 0 (returnToBoundaryCount [3,2,-3,-4])) |
|
|
| test3 :: Test |
| test3 = TestCase (assertEqual "for (returnToBoundaryCount [-10, 9, ( -10), 10, 1, ( -8), 5, 9, ( -7), ( -9), 2, ( -8), ( -1), ( -5), ( -7), 7, ( -5), ( -2), ( -3), 9, ( -9), ( -9), 9, ( -3), ( -7), ( -6), ( -9), ( -7), 0, 4, ( -1), ( -10), 0, 8, 8, ( -7), ( -1), 3, 8, ( -3), ( -1), ( -6)])," 1 (returnToBoundaryCount [-10, 9, -10, 10, 1, -8, 5, 9, -7, -9, 2, -8, -1, -5, -7, 7, -5, -2, -3, 9, -9, -9, 9, -3, -7, -6, -9, -7, 0, 4, -1, -10, 0, 8, 8, -7, -1, 3, 8, -3, -1, -6])) |
|
|
| test4 :: Test |
| test4 = TestCase (assertEqual "for (returnToBoundaryCount [-6, 0, 7, ( -4), ( -2), 5, 3, 4, 3, ( -7), 4, ( -6), 7, 8, ( -1), 5, 1, 10, ( -7), ( -6), 1, ( -5), 3, 8, ( -6), 5, ( -8), 10, ( -4), 3, ( -10), ( -3), ( -1), 10, 9, 10, ( -9), 10, ( -3), ( -3), ( -6), 0, 7, 4, 2, 0, 7, 2, ( -6)])," 1 (returnToBoundaryCount [-6, 0, 7, -4, -2, 5, 3, 4, 3, -7, 4, -6, 7, 8, -1, 5, 1, 10, -7, -6, 1, -5, 3, 8, -6, 5, -8, 10, -4, 3, -10, -3, -1, 10, 9, 10, -9, 10, -3, -3, -6, 0, 7, 4, 2, 0, 7, 2, -6])) |
|
|
| test5 :: Test |
| test5 = TestCase (assertEqual "for (returnToBoundaryCount [-2, 5, 1, ( -2), 7, ( -6), 6, 2, ( -2), ( -10), 10, 8, ( -3), 6])," 0 (returnToBoundaryCount [-2, 5, 1, -2, 7, -6, 6, 2, -2, -10, 10, 8, -3, 6])) |
|
|
| test6 :: Test |
| test6 = TestCase (assertEqual "for (returnToBoundaryCount [-2, ( -7), ( -7), ( -10), ( -10)])," 0 (returnToBoundaryCount [-2, -7, -7, -10, -10])) |
|
|
| test7 :: Test |
| test7 = TestCase (assertEqual "for (returnToBoundaryCount [-10, ( -9), 0])," 0 (returnToBoundaryCount [-10, -9, 0])) |
|
|
|
|
| |
| tests :: Test |
| tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2, TestLabel "Test3" test3, TestLabel "Test4" test4, TestLabel "Test5" test5, TestLabel "Test6" test6] |
|
|
| |
| main :: IO Counts |
| main = runTestTT tests |
|
|