leetcode/tests/s0416_partition_equal_subset_sum.cpp

18 lines
384 B
C++
Raw Normal View History

2023-02-09 04:27:42 +00:00
#include "s0416_partition_equal_subset_sum.hpp"
#include <gtest/gtest.h>
TEST(Problem416, Case1) {
vector<int> nums{1, 5, 11, 5};
bool expected{true};
S0416 solution;
EXPECT_EQ(solution.canPartition(nums), expected);
}
TEST(Problem416, Case2) {
vector<int> nums{1, 2, 3, 5};
bool expected{false};
S0416 solution;
EXPECT_EQ(solution.canPartition(nums), expected);
}