Skip to content

Commit c512f1e

Browse files
committed
tests: add test_greedy_approach_does_not_work
1 parent ab7e0f4 commit c512f1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dynamic_programming/coin_change.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ mod tests {
8787
test_fibonacci_sequence: (vec![1, 2, 3, 5, 8, 13, 21, 34], 55, Some(2)),
8888
test_mixed_small_large: (vec![1, 100, 1000, 10000], 11001, Some(3)),
8989
test_impossible_combinations: (vec![2, 4, 6, 8], 7, None),
90+
test_greedy_approach_does_not_work: (vec![1, 12, 20], 24, Some(2)),
9091
}
9192
}

0 commit comments

Comments
 (0)