CoolFace
Datasetpublic

TheRealSamuel/LeetCodeProblem

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes564downloads
Main.hs25 linesDownload Raw Back to haskell_tests
1 2module Main where3import Test.HUnit4 5--Program start6 7--Program end8 9-- Test cases10 11test1 :: Test12test1 = TestCase (assertEqual "for (diagonalPrime [[1,2,3],[5,6,7],[9,10,11]])," 11 (diagonalPrime [[1,2,3],[5,6,7],[9,10,11]]))13 14test2 :: Test15test2 = TestCase (assertEqual "for (diagonalPrime [[1,2,3],[5,17,7],[9,11,10]])," 17 (diagonalPrime [[1,2,3],[5,17,7],[9,11,10]]))16 17 18-- Grouping test cases19tests :: Test20tests = TestList [TestLabel "Test1" test1]21 22-- Running the tests23main :: IO Counts24main = runTestTT tests25