From 44d1bb3e7821a612cb0c3bb2b155eba997dabd90 Mon Sep 17 00:00:00 2001 From: yancy Date: Wed, 28 Aug 2024 20:39:50 -0500 Subject: [PATCH] Fix to string format --- src/branch_and_bound.rs | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/src/branch_and_bound.rs b/src/branch_and_bound.rs index 1546c15..39bbea8 100644 --- a/src/branch_and_bound.rs +++ b/src/branch_and_bound.rs @@ -370,52 +370,43 @@ mod tests { } #[test] - fn select_coins_bnb_one() { assert_coin_select("1 cBTC", &["0.01000000 BTC"]); } + fn select_coins_bnb_one() { assert_coin_select("1 cBTC", &["0.01 BTC"]); } #[test] - fn select_coins_bnb_two() { assert_coin_select("2 cBTC", &["0.02000000 BTC"]); } + fn select_coins_bnb_two() { assert_coin_select("2 cBTC", &["0.02 BTC"]); } #[test] - fn select_coins_bnb_three() { - assert_coin_select("3 cBTC", &["0.02000000 BTC", "0.01000000 BTC"]); - } + fn select_coins_bnb_three() { assert_coin_select("3 cBTC", &["0.02 BTC", "0.01 BTC"]); } #[test] - fn select_coins_bnb_four() { - assert_coin_select("4 cBTC", &["0.03000000 BTC", "0.01000000 BTC"]); - } + fn select_coins_bnb_four() { assert_coin_select("4 cBTC", &["0.03 BTC", "0.01 BTC"]); } #[test] - fn select_coins_bnb_five() { - assert_coin_select("5 cBTC", &["0.03000000 BTC", "0.02000000 BTC"]); - } + fn select_coins_bnb_five() { assert_coin_select("5 cBTC", &["0.03 BTC", "0.02 BTC"]); } #[test] fn select_coins_bnb_six() { - assert_coin_select("6 cBTC", &["0.03000000 BTC", "0.02000000 BTC", "0.01000000 BTC"]); + assert_coin_select("6 cBTC", &["0.03 BTC", "0.02 BTC", "0.01 BTC"]); } #[test] fn select_coins_bnb_seven() { - assert_coin_select("7 cBTC", &["0.04000000 BTC", "0.02000000 BTC", "0.01000000 BTC"]); + assert_coin_select("7 cBTC", &["0.04 BTC", "0.02 BTC", "0.01 BTC"]); } #[test] fn select_coins_bnb_eight() { - assert_coin_select("8 cBTC", &["0.04000000 BTC", "0.03000000 BTC", "0.01000000 BTC"]); + assert_coin_select("8 cBTC", &["0.04 BTC", "0.03 BTC", "0.01 BTC"]); } #[test] fn select_coins_bnb_nine() { - assert_coin_select("9 cBTC", &["0.04000000 BTC", "0.03000000 BTC", "0.02000000 BTC"]); + assert_coin_select("9 cBTC", &["0.04 BTC", "0.03 BTC", "0.02 BTC"]); } #[test] fn select_coins_bnb_ten() { - assert_coin_select( - "10 cBTC", - &["0.04000000 BTC", "0.03000000 BTC", "0.02000000 BTC", "0.01000000 BTC"], - ); + assert_coin_select("10 cBTC", &["0.04 BTC", "0.03 BTC", "0.02 BTC", "0.01 BTC"]); } #[test]