TestPartitionProblem tests the PartitionProblem function with different test cases
(t *testing.T)
| 28 | |
| 29 | // TestPartitionProblem tests the PartitionProblem function with different test cases |
| 30 | func TestPartitionProblem(t *testing.T) { |
| 31 | t.Run("Partition Problem test cases", func(t *testing.T) { |
| 32 | for _, tc := range getPartitionProblemTestCases() { |
| 33 | actual := dynamic.PartitionProblem(tc.nums) |
| 34 | if actual != tc.expected { |
| 35 | t.Errorf("PartitionProblem(%v) = %v; expected %v", tc.nums, actual, tc.expected) |
| 36 | } |
| 37 | } |
| 38 | }) |
| 39 | } |
nothing calls this directly
no test coverage detected