Download construct_string_with_repeat_limit/scala_tests/MySuite.scala from FPEvalDataset/LeetCodeProblem: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/datasets/FPEvalDataset/LeetCodeProblem/resolve/9ec8dedaeb214e625c9769ffaf4db6cfb0166bb1/construct_string_with_repeat_limit/scala_tests/MySuite.scala
- Command line
-
hf download hf://datasets/FPEvalDataset/LeetCodeProblem@9ec8dedaeb214e625c9769ffaf4db6cfb0166bb1/construct_string_with_repeat_limit/scala_tests/MySuite.scala
-
curl -L -o MySuite.scala https://huggingface.co/datasets/FPEvalDataset/LeetCodeProblem/resolve/9ec8dedaeb214e625c9769ffaf4db6cfb0166bb1/construct_string_with_repeat_limit/scala_tests/MySuite.scala
224 Bytes
| class MySuite extends munit.FunSuite { | |
| test("test1") { | |
| assertEquals(Main.repeatLimitedString("cczazcc",3), "zzcccac") | |
| } | |
| test("test2") { | |
| assertEquals(Main.repeatLimitedString("aababab",2), "bbabaa") | |
| } | |
| } | |