Download tasks/format-code-task-000011/tests/test.patch from FineEnvs/MiMo-V2.6-RL-harbor-code: direct link, hf CLI and curl.
- Browser
- Download file 2.41 kB
-
https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000011/tests/test.patch
- Command line
-
hf download hf://datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/tasks/format-code-task-000011/tests/test.patch
-
curl -L -o test.patch https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000011/tests/test.patch
2.41 kB
| diff --git a/leetcode/1201-1300/1277.Count-Square-Submatrices-with-All-Ones/Solution_test.go b/leetcode/1201-1300/1277.Count-Square-Submatrices-with-All-Ones/Solution_test.go | |
| index 3e51ecacf..b0eb74396 100644 | |
| --- a/leetcode/1201-1300/1277.Count-Square-Submatrices-with-All-Ones/Solution_test.go | |
| +++ b/leetcode/1201-1300/1277.Count-Square-Submatrices-with-All-Ones/Solution_test.go | |
| func TestSolution(t *testing.T) { | |
| // 测试用例 | |
| cases := []struct { | |
| name string | |
| - inputs bool | |
| - expect bool | |
| + inputs [][]int | |
| + expect int | |
| }{ | |
| - {"TestCase", true, true}, | |
| - {"TestCase", true, true}, | |
| - {"TestCase", false, false}, | |
| + {"TestCase", [][]int{ | |
| + {0,1,1,1}, | |
| + {1,1,1,1}, | |
| + {0,1,1,1}, | |
| + }, 15}, | |
| + {"TestCase", [][]int{ | |
| + {1,0,1}, | |
| + {1,1,0}, | |
| + {1,1,0}, | |
| + }, 7}, | |
| } | |
| // 开始测试 | |
| diff --git a/leetcode/301-400/0338.Counting-Bits/Solution_test.go b/leetcode/301-400/0338.Counting-Bits/Solution_test.go | |
| index 3e51ecacf..ed701b1ad 100644 | |
| --- a/leetcode/301-400/0338.Counting-Bits/Solution_test.go | |
| +++ b/leetcode/301-400/0338.Counting-Bits/Solution_test.go | |
| func TestSolution(t *testing.T) { | |
| // 测试用例 | |
| cases := []struct { | |
| name string | |
| - inputs bool | |
| - expect bool | |
| + inputs int | |
| + expect []int | |
| }{ | |
| - {"TestCase", true, true}, | |
| - {"TestCase", true, true}, | |
| - {"TestCase", false, false}, | |
| + {"TestCase", 2, []int{0,1,1}}, | |
| + {"TestCase", 5, []int{0,1,1,2,1,2}}, | |
| + {"TestCase", 10, []int{0,1,1,2,1,2,2,3,1,2,2}}, | |
| } | |
| // 开始测试 | |
| diff --git a/mimo_build_env.tar.gz.b64 b/mimo_build_env.tar.gz.b64 | |
| new file mode 100644 | |
| --- /dev/null | |
| +++ b/mimo_build_env.tar.gz.b64 | |
| +H4sIAAAAAAAAA+3SvW7DIBQFYM9+CqrO/Bk7dG37AB3yABE2KLFkg2pw8volzpCoUpslUVv1fAsg | |
| +0OWKA2vnfrAb5/e8uBeR6aZZxuzzuMxlU0mpha50VQgpV6IpSHO3ji7MMZmJkGIKIX137tr+H8XO | |
| ++ScX06YL42i8ZXF3uzuu5V/V6py/0jn/elXJgojbtfC1f57/4wNve89bE3dlZ8nyCVpny3IbyBgs | |
| +seHgh2DscX3cI4wPzqUuWMdlJSSVSog805q9htknun6fzeToem5Hk6a+c5Ee+rSjz8NA37yLnDF2 | |
| +WUTlGnUuIZR6OpXo/Za+9Ol0ku7Ln34iAAAAAAAAAAAAAAAAAAAAAIBf6wPgDnkJACgAAA== | |
| diff --git a/mimo_test_command.sh b/mimo_test_command.sh | |
| new file mode 100755 | |
| --- /dev/null | |
| +++ b/mimo_test_command.sh | |
| +#!/usr/bin/env bash | |
| + | |
| +set -uo pipefail | |
| +cd /testbed || exit 1 | |
| +base64 -d mimo_build_env.tar.gz.b64 | tar -xzf - -C /testbed || exit 1 | |
| +exec bash -lc 'cd /testbed && bash -eo pipefail /testbed/.build_env/test_command.sh' | |