mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-18 03:45:04 +00:00
jq ci: compare to 30 days texttest stdout
This commit is contained in:
1 parent
e7545c322e
commit
8ee93709a5
3 files changed
+5
-126
No files matched your search
@@ -5,7 +5,7 @@
|
||||
{ name: "Aged Brie", sell_in: 2, quality: 0 },
|
||||
{ name: "Elixir of the Mongoose", sell_in: 5, quality: 7 },
|
||||
{ name: "Sulfuras, Hand of Ragnaros", sell_in: 0, quality: 80 },
|
||||
{ name: "Sulfuras, Hand of Ragnaros", sell_in: 1, quality: 80 },
|
||||
{ name: "Sulfuras, Hand of Ragnaros", sell_in: -1, quality: 80 },
|
||||
{ name: "Backstage passes to a TAFKAL80ETC concert", sell_in: 15, quality: 20 },
|
||||
{ name: "Backstage passes to a TAFKAL80ETC concert", sell_in: 10, quality: 49 },
|
||||
{ name: "Backstage passes to a TAFKAL80ETC concert", sell_in: 5, quality: 49 },
|
||||
@@ -14,9 +14,9 @@
|
||||
{ items: ., day: 0 } |
|
||||
recurse(.day += 1 | .items = (.items | update_quality); .day < ($ARGS.named.days // 2 | tonumber)) |
|
||||
(
|
||||
"",
|
||||
(["-------- day ", (.day | tostring), " --------"] | add),
|
||||
("name, sellIn, quality"),
|
||||
(.items[] | [.name, .sell_in, .quality | tostring] | join(", "))
|
||||
(.items[] | [.name, .sell_in, .quality | tostring] | join(", ")),
|
||||
""
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user