Open mrbiggred opened 3 months ago
Here are the code search results. I'm now analyzing these search results to write the PR.
gilded_rose.py
Update the quality calculation logic for "Backstage passes" that have a sell_in value of 0 or less. The quality should drop to 0 in this case.
---
+++
@@ -7,7 +7,7 @@
if item.name != "Sulfuras, Hand of Ragnaros":
item.quality = item.quality - 1
else:
- item.quality = item.quality - item.quality
+ item.quality = 0
else:
if item.quality < 50:
item.quality = item.quality + 1
Your changes have been successfully made to the branch sweep/fix_the_failing_gildedrosetest_in_test_g
. I have validated these changes using a syntax checker and a linter.
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
Details
The one test in this project is failing. Please fix it so it passes. The test is called GildedRoseTest in the test_gilded_rose.py file.
Branch
No response