Skip to content

Commit eef615d

Browse files
committed
feat(tiered_pricing): 🔴 test for 3 subscription
1 parent f35ec40 commit eef615d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

exercises/tiered_pricing/solutions/oflorez/src/test/java/tv/codely/checkout/TieredPricingShould.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ void calculate_total_value_for_first_pricing_range() {
1515
var subscription = IntStream.rangeClosed(FIRST_RANGE_LOWER_LIMIT, FIRST_RANGE_UPPER_LIMIT).findAny().getAsInt();
1616
assertEquals(FIRST_RANGE_UNIT_PRICE * subscription, pricing.calculateTotalPrice(subscription));
1717
}
18+
19+
@Test
20+
void calculate_total_value_for_3_subscription() {
21+
var pricing = new TieredPricing();
22+
assertEquals(717, pricing.calculateTotalPrice(3));
23+
}
1824
}

0 commit comments

Comments
 (0)