s0026
This commit is contained in:
17
tests/s0026_remove_duplicates_from_sorted_array.cpp
Normal file
17
tests/s0026_remove_duplicates_from_sorted_array.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "s0026_remove_duplicates_from_sorted_array.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Problem26, Case1) {
|
||||
vector<int> i{1, 1, 2};
|
||||
int o{2};
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.removeDuplicates(i), o);
|
||||
}
|
||||
|
||||
TEST(Problem26, Case2) {
|
||||
vector<int> i{0, 0, 1, 1, 1, 2, 2, 3, 3, 4};
|
||||
int o{5};
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.removeDuplicates(i), o);
|
||||
}
|
Reference in New Issue
Block a user