Skip to content

Commit d9c63ed

Browse files
Update Unbounded_0_1_Knapsack.cpp
1 parent 47e2d1d commit d9c63ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_programming/Unbounded_0_1_Knapsack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int unboundedKnapsack(std::uint16_t N, std::uint16_t W,
9595
* @details This function tests the implementation with predefined test cases.
9696
* It asserts the expected outcomes to ensure correctness of the algorithm.
9797
*/
98-
void tests() {
98+
static void tests() {
9999
// Test Case 1
100100
std::uint16_t N1 = 4; // Number of items
101101
std::vector<std::uint16_t> wt1 = {1, 3, 4, 5}; // Weights of the items

0 commit comments

Comments
 (0)