| module Main where | |
| import Test.HUnit | |
| --Program start | |
| --Program end | |
| -- Test cases | |
| test1 :: Test | |
| test1 = TestCase (assertEqual "for (isReachable 6 9)," False (isReachable 6 9)) | |
| test2 :: Test | |
| test2 = TestCase (assertEqual "for (isReachable 4 7)," True (isReachable 4 7)) | |
| test3 :: Test | |
| test3 = TestCase (assertEqual "for (isReachable 303660259 537982881)," True (isReachable 303660259 537982881)) | |
| test4 :: Test | |
| test4 = TestCase (assertEqual "for (isReachable 382325806 733120976)," True (isReachable 382325806 733120976)) | |
| test5 :: Test | |
| test5 = TestCase (assertEqual "for (isReachable 210576177 530284179)," False (isReachable 210576177 530284179)) | |
| test6 :: Test | |
| test6 = TestCase (assertEqual "for (isReachable 577023801 854345261)," True (isReachable 577023801 854345261)) | |
| test7 :: Test | |
| test7 = TestCase (assertEqual "for (isReachable 793570509 391886469)," False (isReachable 793570509 391886469)) | |
| test8 :: Test | |
| test8 = TestCase (assertEqual "for (isReachable 336580977 487441233)," False (isReachable 336580977 487441233)) | |
| test9 :: Test | |
| test9 = TestCase (assertEqual "for (isReachable 697974041 697734349)," True (isReachable 697974041 697734349)) | |
| -- Grouping test cases | |
| tests :: Test | |
| tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2, TestLabel "Test3" test3, TestLabel "Test4" test4, TestLabel "Test5" test5, TestLabel "Test6" test6, TestLabel "Test7" test7, TestLabel "Test8" test8, TestLabel "Test9" test9] | |
| -- Running the tests | |
| main :: IO Counts | |
| main = runTestTT tests | |