From c70b6f1a1129831123c4e7512b66c8ff48f66147 Mon Sep 17 00:00:00 2001 From: James Knee <jknee@bu.edu> Date: Sun, 17 Nov 2024 18:40:16 -0500 Subject: [PATCH] updated incorrect test case --- problems/LabFour_ChapterEleven.h | 3 ++- tests/LabFour.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/problems/LabFour_ChapterEleven.h b/problems/LabFour_ChapterEleven.h index 72f9be2..f4dbc9b 100644 --- a/problems/LabFour_ChapterEleven.h +++ b/problems/LabFour_ChapterEleven.h @@ -18,7 +18,7 @@ using namespace std; * @return the number of different ways of generating [dollars] * dollars with the permitted bills * - * @example labFour_pTwo_exchange(8) = 6 corresponding to the + * @example labFour_pTwo_exchange(8) = 7 corresponding to the * following ways to exchange $8: * 1. 8*$1 * 2. 6*$1+$2 @@ -26,6 +26,7 @@ using namespace std; * 4. 4*$2 * 5. 3*$1 +$5 * 6. $1 +$2 +$5 + * 7. 2*$1 + 3*$2 */ int labFour_pTwo_exchange(int dollars); diff --git a/tests/LabFour.cpp b/tests/LabFour.cpp index 9a4ef49..661d91a 100644 --- a/tests/LabFour.cpp +++ b/tests/LabFour.cpp @@ -188,7 +188,7 @@ bool test_labFour_pOne(){ bool test_labFour_pTwo(){ - if(labFour_pTwo_exchange(8) != 6){ + if(labFour_pTwo_exchange(8) != 7){ cout << "Test 2a failed" << endl; return false; } -- GitLab