Download calculate_delayed_arrival_time/haskell_tests/Main.hs from DatasetRepo/FPEval: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/main/calculate_delayed_arrival_time/haskell_tests/Main.hs
- Command line
-
hf download hf://datasets/DatasetRepo/FPEval/calculate_delayed_arrival_time/haskell_tests/Main.hs
-
curl -L -o Main.hs https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/main/calculate_delayed_arrival_time/haskell_tests/Main.hs
462 Bytes
| module Main where | |
| import Test.HUnit | |
| --Program start | |
| --Program end | |
| -- Test cases | |
| test1 :: Test | |
| test1 = TestCase (assertEqual "for (findDelayedArrivalTime 15 5)," 20 (findDelayedArrivalTime 15 5)) | |
| test2 :: Test | |
| test2 = TestCase (assertEqual "for (findDelayedArrivalTime 13 11)," 0 (findDelayedArrivalTime 13 11)) | |
| -- Grouping test cases | |
| tests :: Test | |
| tests = TestList [TestLabel "Test1" test1] | |
| -- Running the tests | |
| main :: IO Counts | |
| main = runTestTT tests | |