#include "s0016_3sum_closest.hpp" #include TEST(Problem16, Case1) { vector nums{-1, 2, 1, -4}; int target{1}; int o{2}; S0016 solution; EXPECT_EQ(solution.threeSumClosest(nums, target), o); } TEST(Problem16, Case2) { vector nums{0, 0, 0}; int target{1}; int o{0}; S0016 solution; EXPECT_EQ(solution.threeSumClosest(nums, target), o); }