This commit is contained in:
2022-11-30 18:20:36 +08:00
parent b13cfa00bb
commit 72555b19e0
132 changed files with 332 additions and 334 deletions

View File

@@ -5,27 +5,27 @@
TEST(Problem32, Case1) {
string i{"(()"};
int o{2};
Solution solution;
S0032 solution;
EXPECT_EQ(solution.longestValidParentheses(i), o);
}
TEST(Problem32, Case2) {
string i{")()())"};
int o{4};
Solution solution;
S0032 solution;
EXPECT_EQ(solution.longestValidParentheses(i), o);
}
TEST(Problem32, Case3) {
string i{"())"};
int o{2};
Solution solution;
S0032 solution;
EXPECT_EQ(solution.longestValidParentheses(i), o);
}
TEST(Problem32, Case4) {
string i{"()(()"};
int o{2};
Solution solution;
S0032 solution;
EXPECT_EQ(solution.longestValidParentheses(i), o);
}