Download apply_operations_to_an_array/haskell_tests/Main.hs from DatasetRepo/FPEval: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/refs%2Fpr%2F1/apply_operations_to_an_array/haskell_tests/Main.hs
- Command line
-
hf download hf://datasets/DatasetRepo/FPEval@refs/pr/1/apply_operations_to_an_array/haskell_tests/Main.hs
-
curl -L -o Main.hs https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/refs%2Fpr%2F1/apply_operations_to_an_array/haskell_tests/Main.hs
467 Bytes
| module Main where | |
| import Test.HUnit | |
| --Program start | |
| --Program end | |
| -- Test cases | |
| test1 :: Test | |
| test1 = TestCase (assertEqual "for (applyOperations [1,2,2,1,1,0])," [1,4,2,0,0,0] (applyOperations [1,2,2,1,1,0])) | |
| test2 :: Test | |
| test2 = TestCase (assertEqual "for (applyOperations [0,1])," [1,0] (applyOperations [0,1])) | |
| -- Grouping test cases | |
| tests :: Test | |
| tests = TestList [TestLabel "Test1" test1] | |
| -- Running the tests | |
| main :: IO Counts | |
| main = runTestTT tests | |