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 @@ -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}, } // 开始测试 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 @@ -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}}, } // 开始测试 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 @@ -0,0 +1,5 @@ +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 @@ -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'