Refactor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user