FPEvalDataset/LeetCodeProblem
0304
1 2module Main where3import Test.HUnit4 5--Program start6 7--Program end8 9-- Test cases10 11test1 :: Test12test1 = TestCase (assertEqual "for (appendCharacters \"coaching \" \"coding \")," 4 (appendCharacters "coaching" "coding"))13 14test2 :: Test15test2 = TestCase (assertEqual "for (appendCharacters \"abcde \" \"a \")," 0 (appendCharacters "abcde" "a"))16 17test3 :: Test18test3 = TestCase (assertEqual "for (appendCharacters \"z \" \"abcde \")," 5 (appendCharacters "z" "abcde"))19 20 21-- Grouping test cases22tests :: Test23tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2]24 25-- Running the tests26main :: IO Counts27main = runTestTT tests28 