Skip to content

Commit

Permalink
Chaning asseration to call getResult for impossible bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdish-15 committed Jan 15, 2025
1 parent 9935ee5 commit 81210a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void testBucketOneSizeTwoBucketTwoSizeThreeStartWithOne() {
public void testReachingGoalIsImpossible() {

assertThatExceptionOfType(UnreachableGoalException.class)
.isThrownBy(() -> new TwoBucket(6, 15, 5, "one"))
.isThrownBy(() -> new TwoBucket(6, 15, 5, "one").getResult())
.withMessage("impossible");

}
Expand All @@ -104,7 +104,7 @@ public void testBucketOneSizeSixBucketTwoSizeFifteenStartWithOne() {
public void testGoalLargerThanBothBucketsIsImpossible() {

assertThatExceptionOfType(UnreachableGoalException.class)
.isThrownBy(() -> new TwoBucket(5, 7, 8, "one"))
.isThrownBy(() -> new TwoBucket(5, 7, 8, "one").getResult())
.withMessage("impossible");

}
Expand Down

0 comments on commit 81210a0

Please sign in to comment.