Skip to content

Commit b0652f6

Browse files
committed
feat(tiered_pricing): 🟢 make test pass
1 parent 9961870 commit b0652f6

File tree

1 file changed

+3
-0
lines changed
  • exercises/tiered_pricing/solutions/oflorez/src/main/java/tv/codely/checkout

1 file changed

+3
-0
lines changed

exercises/tiered_pricing/solutions/oflorez/src/main/java/tv/codely/checkout/TieredPricing.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
public class TieredPricing {
44

55
public int calculateTotalPrice(int amount_subscriptions) {
6+
7+
if (amount_subscriptions <= 0) throw new IllegalArgumentException();
8+
69
return Tier.getTotalPrice(amount_subscriptions);
710
}
811
}

0 commit comments

Comments
 (0)