This commit is contained in:
17
tests/s0416_partition_equal_subset_sum.cpp
Normal file
17
tests/s0416_partition_equal_subset_sum.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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);
|
||||
}
|
Reference in New Issue
Block a user