#include "s0033_search_in_rotated_sorted_array.hpp" #include TEST(Problem33, Case1) { vector nums{4, 5, 6, 7, 0, 1, 2}; int target{0}; int o{4}; S0033 solution; EXPECT_EQ(solution.search(nums, target), o); } TEST(Problem33, Case2) { vector nums{4, 5, 6, 7, 0, 1, 2}; int target{3}; int o{-1}; S0033 solution; EXPECT_EQ(solution.search(nums, target), o); } TEST(Problem33, Case3) { vector nums{1}; int target{0}; int o{-1}; S0033 solution; EXPECT_EQ(solution.search(nums, target), o); }