Add pricing module, tests and Jenkinsfile for CI (#11) #13

Merged
samahk13 merged 8 commits from feature/issue-11 into main 2026-10-24 03:13:18 +00:00
Showing only changes of commit ab0bcc25f3 - Show all commits
+1 -1
View File
@@ -5,4 +5,4 @@ def total_price(unit_price, quantity):
"""Return the total price for `quantity` items at `unit_price` each."""
if quantity < 1:
raise ValueError("Quantity must be positive")
return unit_price * quantity
return unit_price + quantity