From 7c06c5a60808c5ee97a7ed2af1629e2ca598a3a0 Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Wed, 8 Mar 2023 16:30:07 +0100 Subject: [PATCH] Update book-store.rs Add missing test f808b5a4-e01f-4c0d-881f-f7b90d9739da from https://github.com/exercism/problem-specifications/blob/main/exercises/book-store/canonical-data.json --- exercises/practice/book-store/tests/book-store.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/exercises/practice/book-store/tests/book-store.rs b/exercises/practice/book-store/tests/book-store.rs index e959453b5..28eacf0a4 100644 --- a/exercises/practice/book-store/tests/book-store.rs +++ b/exercises/practice/book-store/tests/book-store.rs @@ -83,6 +83,19 @@ fn test_two_groups_of_four_is_cheaper_than_group_of_five_plus_group_of_three() { ); } +#[test] +#[ignore] +/// Two groups of four is cheaper than groups of five and three +fn test_two_groups_of_four_is_cheaper_than_groups_of_five_and_three() { + process_total_case( + ( + vec![1, 1, 2, 3, 4, 4, 5, 5], + vec![vec![1, 2, 4, 5], vec![1, 3, 4, 5]], + ), + 5_120, + ); +} + #[test] #[ignore] /// Group of four plus group of two is cheaper than two groups of three