MCPcopy Create free account
hub / github.com/douchuan/algorithm / make_changes_fail

Function make_changes_fail

tests/test_dp.rs:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25#[test]
26fn make_changes_fail() {
27 let coins = vec![2, 5];
28 let solutions = vec![(-1, 3)];
29 for (expect, amount) in solutions {
30 assert_eq!(expect, dp::coin::make_change_classic(&coins, amount));
31 assert_eq!(expect, dp::coin::make_change_iter(&coins, amount));
32 }
33}
34
35#[test]
36fn fib_classic_recursive() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected