| |
| |
| |
| |
| @@ -10,12 +10,19 @@ 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}, |
| } |
| |
| // 开始测试 |
| |
| |
| |
| |
| @@ -10,12 +10,12 @@ 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}}, |
| } |
| |
| // 开始测试 |
| |
| new file mode 100644 |
| |
| |
| @@ -0,0 +1,5 @@ |
| +H4sIAAAAAAAAA+3SvW7DIBQFYM9+CqrO/Bk7dG37AB3yABE2KLFkg2pw8volzpCoUpslUVv1fAsg |
| +0OWKA2vnfrAb5/e8uBeR6aZZxuzzuMxlU0mpha50VQgpV6IpSHO3ji7MMZmJkGIKIX137tr+H8XO |
| ++ScX06YL42i8ZXF3uzuu5V/V6py/0jn/elXJgojbtfC1f57/4wNve89bE3dlZ8nyCVpny3IbyBgs |
| +seHgh2DscX3cI4wPzqUuWMdlJSSVSog805q9htknun6fzeToem5Hk6a+c5Ee+rSjz8NA37yLnDF2 |
| +WUTlGnUuIZR6OpXo/Za+9Ol0ku7Ln34iAAAAAAAAAAAAAAAAAAAAAIBf6wPgDnkJACgAAA== |
| |
| new file mode 100755 |
| |
| |
| @@ -0,0 +1,6 @@ |
| +#!/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' |
|
|