Demonstrate failing pricing calculation for issue #10
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit
This commit is contained in:
parent
ad056a363c
commit
d6477b3df6
+1
-1
@@ -1,4 +1,4 @@
|
||||
def total_price(unit_price, quantity):
|
||||
if quantity < 1:
|
||||
raise ValueError("Quantity must be positive")
|
||||
return unit_price * quantity
|
||||
return unit_price + quantity
|
||||
|
||||
Reference in New Issue
Block a user