mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-23 06:15:04 +00:00
added (no) for negative path in if-statements
This commit is contained in:
1 parent
632a6768eb
commit
ff06861ab7
7 files changed
+46
-2
No files matched your search
@@ -10,16 +10,20 @@ if (not "Aged Brie") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower quality with 1
|
||||
else (no)
|
||||
endif
|
||||
else (no)
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
else (no)
|
||||
endif
|
||||
endif
|
||||
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower sell in with 1
|
||||
else (no)
|
||||
endif
|
||||
|
||||
if (sell in < 0) then (yes)
|
||||
@@ -27,13 +31,17 @@ if (sell in < 0) then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower quality with 1
|
||||
else (no)
|
||||
endif
|
||||
else (no)
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
else (no)
|
||||
endif
|
||||
endif
|
||||
else (no)
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
Reference in new issue
Block a user