BOGOF discount for ZERO2W

This commit is contained in:
David Underwood
2026-07-15 10:57:09 -04:00
parent dadfeed768
commit d21373035e
3 changed files with 70 additions and 3 deletions
+35
View File
@@ -7,3 +7,38 @@ checkout.add(:ZERO2W)
puts checkout.items # ["PI5", "ZERO2W"]
puts checkout.total # 75.00
checkout = Checkout.new()
checkout.add(:ZERO2W)
checkout.add(:ZERO2W)
puts checkout.total # 15.00
checkout = Checkout.new()
checkout.add(:ZERO2W)
checkout.add(:ZERO2W)
checkout.add(:ZERO2W)
puts checkout.total # 30.00
checkout = Checkout.new()
checkout.add(:PICO2)
checkout.add(:PICO2)
checkout.add(:PICO2)
puts checkout.total # 10.50
checkout = Checkout.new()
checkout.add(:PI5)
checkout.add(:ZERO2W)
checkout.add(:ZERO2W)
checkout.add(:PICO2)
checkout.add(:PICO2)
checkout.add(:PICO2)
checkout.add(:PICO2)
puts checkout.total # 89.00