LeetCode 5203. 统计可以提取的工件
更多...
|
| TEST (count_artifacts_that_can_be_extracted, case1) |
|
| TEST (count_artifacts_that_can_be_extracted, case2) |
|
◆ TEST() [1/2]
leetcode::count_artifacts_that_can_be_extracted::TEST |
( |
count_artifacts_that_can_be_extracted |
, |
|
|
case1 |
|
|
) |
| |
在文件 leetcode_test.cpp 第 2192 行定义.
2193 vector<vector<int>> artifacts = {{0, 0, 0, 0}, {0, 1, 1, 1}};
2194 vector<vector<int>> dig = {{0, 0}, {0, 1}};
2195 ASSERT_EQ(1, Solution::digArtifacts(2, artifacts, dig));
引用了 leetcode::count_artifacts_that_can_be_extracted::Solution::digArtifacts().
◆ TEST() [2/2]
leetcode::count_artifacts_that_can_be_extracted::TEST |
( |
count_artifacts_that_can_be_extracted |
, |
|
|
case2 |
|
|
) |
| |
在文件 leetcode_test.cpp 第 2198 行定义.
2199 vector<vector<int>> artifacts = {{0, 0, 0, 0}, {0, 1, 1, 1}};
2200 vector<vector<int>> dig = {{0, 0}, {0, 1}, {1, 1}};
2201 ASSERT_EQ(2, Solution::digArtifacts(2, artifacts, dig));
引用了 leetcode::count_artifacts_that_can_be_extracted::Solution::digArtifacts().