Refactor
This commit is contained in:
@@ -6,7 +6,7 @@ TEST(Problem33, Case1) {
|
||||
vector<int> nums{4, 5, 6, 7, 0, 1, 2};
|
||||
int target{0};
|
||||
int o{4};
|
||||
Solution solution;
|
||||
S0033 solution;
|
||||
EXPECT_EQ(solution.search(nums, target), o);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ TEST(Problem33, Case2) {
|
||||
vector<int> nums{4, 5, 6, 7, 0, 1, 2};
|
||||
int target{3};
|
||||
int o{-1};
|
||||
Solution solution;
|
||||
S0033 solution;
|
||||
EXPECT_EQ(solution.search(nums, target), o);
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ TEST(Problem33, Case3) {
|
||||
vector<int> nums{1};
|
||||
int target{0};
|
||||
int o{-1};
|
||||
Solution solution;
|
||||
S0033 solution;
|
||||
EXPECT_EQ(solution.search(nums, target), o);
|
||||
}
|
||||
|
Reference in New Issue
Block a user