Update texttest output and fixtures to match spec

This commit is contained in:
Jonas Koperdraat 2023-09-18 23:45:26 +02:00
parent 594bc4e13b
commit cfaa2ff241
58 changed files with 77 additions and 77 deletions

View File

@ -9,7 +9,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 15, 20 Backstage passes to a TAFKAL80ETC concert, 15, 20
Backstage passes to a TAFKAL80ETC concert, 10, 49 Backstage passes to a TAFKAL80ETC concert, 10, 49
Backstage passes to a TAFKAL80ETC concert, 5, 49 Backstage passes to a TAFKAL80ETC concert, 5, 49
Conjured Mana Cake, 3, 6 Conjured Mana Cake, 3, 10
-------- day 1 -------- -------- day 1 --------
name, sellIn, quality name, sellIn, quality
@ -21,7 +21,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 14, 21 Backstage passes to a TAFKAL80ETC concert, 14, 21
Backstage passes to a TAFKAL80ETC concert, 9, 50 Backstage passes to a TAFKAL80ETC concert, 9, 50
Backstage passes to a TAFKAL80ETC concert, 4, 50 Backstage passes to a TAFKAL80ETC concert, 4, 50
Conjured Mana Cake, 2, 5 Conjured Mana Cake, 2, 8
-------- day 2 -------- -------- day 2 --------
name, sellIn, quality name, sellIn, quality
@ -33,7 +33,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 13, 22 Backstage passes to a TAFKAL80ETC concert, 13, 22
Backstage passes to a TAFKAL80ETC concert, 8, 50 Backstage passes to a TAFKAL80ETC concert, 8, 50
Backstage passes to a TAFKAL80ETC concert, 3, 50 Backstage passes to a TAFKAL80ETC concert, 3, 50
Conjured Mana Cake, 1, 4 Conjured Mana Cake, 1, 6
-------- day 3 -------- -------- day 3 --------
name, sellIn, quality name, sellIn, quality
@ -45,7 +45,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 12, 23 Backstage passes to a TAFKAL80ETC concert, 12, 23
Backstage passes to a TAFKAL80ETC concert, 7, 50 Backstage passes to a TAFKAL80ETC concert, 7, 50
Backstage passes to a TAFKAL80ETC concert, 2, 50 Backstage passes to a TAFKAL80ETC concert, 2, 50
Conjured Mana Cake, 0, 3 Conjured Mana Cake, 0, 4
-------- day 4 -------- -------- day 4 --------
name, sellIn, quality name, sellIn, quality
@ -57,7 +57,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 11, 24 Backstage passes to a TAFKAL80ETC concert, 11, 24
Backstage passes to a TAFKAL80ETC concert, 6, 50 Backstage passes to a TAFKAL80ETC concert, 6, 50
Backstage passes to a TAFKAL80ETC concert, 1, 50 Backstage passes to a TAFKAL80ETC concert, 1, 50
Conjured Mana Cake, -1, 1 Conjured Mana Cake, -1, 0
-------- day 5 -------- -------- day 5 --------
name, sellIn, quality name, sellIn, quality

View File

@ -49,7 +49,7 @@ begin
Things.Append(New_Item => Things.Append(New_Item =>
(Name => To_Unbounded_String("Conjured Mana Cake"), (Name => To_Unbounded_String("Conjured Mana Cake"),
Sell_In => 3, Sell_In => 3,
Quality => 6)); Quality => 10));
declare declare

View File

@ -23,7 +23,7 @@ int main()
init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 10, 49); init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 10, 49);
init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 5, 49); init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 5, 49);
// this Conjured item doesn't yet work properly // this Conjured item doesn't yet work properly
init_item(items + last++, "Conjured Mana Cake", 3, 6); init_item(items + last++, "Conjured Mana Cake", 3, 10);
puts("OMGHAI!"); puts("OMGHAI!");

View File

@ -32,7 +32,7 @@ void example()
init_item(items + last++, "Elixir of the Mongoose", 5, 7); init_item(items + last++, "Elixir of the Mongoose", 5, 7);
init_item(items + last++, "Sulfuras, Hand of Ragnaros", 0, 80); init_item(items + last++, "Sulfuras, Hand of Ragnaros", 0, 80);
init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 15, 20); init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 15, 20);
init_item(items + last++, "Conjured Mana Cake", 3, 6); init_item(items + last++, "Conjured Mana Cake", 3, 10);
update_quality(items, last); update_quality(items, last);
} }

View File

@ -12,7 +12,7 @@ Item[] items = [
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6)] as Item[] new Item("Conjured Mana Cake", 3, 10)] as Item[]
GildedRose app = new GildedRose(items) GildedRose app = new GildedRose(items)

View File

@ -15,7 +15,7 @@ public class Program {
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6) }; new Item("Conjured Mana Cake", 3, 10) };
GildedRose app = new GildedRose(items); GildedRose app = new GildedRose(items);

View File

@ -14,7 +14,7 @@ public class TexttestFixture {
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6) }; new Item("Conjured Mana Cake", 3, 10) };
GildedRose app = new GildedRose(items); GildedRose app = new GildedRose(items);

View File

@ -14,7 +14,7 @@ public class TexttestFixture {
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6) }; new Item("Conjured Mana Cake", 3, 10) };
GildedRose app = new GildedRose(items); GildedRose app = new GildedRose(items);

View File

@ -14,7 +14,7 @@ public class TexttestFixture {
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6) }; new Item("Conjured Mana Cake", 3, 10) };
GildedRose app = new GildedRose(items); GildedRose app = new GildedRose(items);

View File

@ -13,7 +13,7 @@ fun main(args: Array<String>) {
Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
Item("Conjured Mana Cake", 3, 6)) Item("Conjured Mana Cake", 3, 10))
val app = GildedRose(items) val app = GildedRose(items)

View File

@ -14,7 +14,7 @@ items <- list(
item('Backstage passes to a TAFKAL80ETC concert', 10, 49), item('Backstage passes to a TAFKAL80ETC concert', 10, 49),
item('Backstage passes to a TAFKAL80ETC concert', 5, 49), item('Backstage passes to a TAFKAL80ETC concert', 5, 49),
# This Conjured item does not work properly yet # This Conjured item does not work properly yet
item('Conjured Mana Cake', 3, 6) item('Conjured Mana Cake', 3, 10)
) )
days <- 2 days <- 2

View File

@ -108,7 +108,7 @@ runExamples
add: (Item new name: 'Backstage passes to a TAFKAL80ETC concert'; sellIn: 15; quality: 20; yourself); add: (Item new name: 'Backstage passes to a TAFKAL80ETC concert'; sellIn: 15; quality: 20; yourself);
add: (Item new name: 'Backstage passes to a TAFKAL80ETC concert'; sellIn: 10; quality: 49; yourself); add: (Item new name: 'Backstage passes to a TAFKAL80ETC concert'; sellIn: 10; quality: 49; yourself);
add: (Item new name: 'Backstage passes to a TAFKAL80ETC concert'; sellIn: 5; quality: 49; yourself); add: (Item new name: 'Backstage passes to a TAFKAL80ETC concert'; sellIn: 5; quality: 49; yourself);
add: (Item new name: 'Conjured Mana Cake'; sellIn: 3; quality: 6; yourself); "this conjured item does not work properly yet" add: (Item new name: 'Conjured Mana Cake'; sellIn: 3; quality: 10; yourself); "this conjured item does not work properly yet"
yourself. yourself.
gildedRose := GildedRose new. gildedRose := GildedRose new.

View File

@ -10,7 +10,7 @@ const items = [
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6)]; new Item("Conjured Mana Cake", 3, 10)];
const gildedRose = new GildedRose(items); const gildedRose = new GildedRose(items);

View File

@ -195,7 +195,7 @@ CLASS lth_texttest_fixture IMPLEMENTATION.
"This conjured item does not work properly yet "This conjured item does not work properly yet
( NEW #( iv_name = |Conjured Mana Cake| ( NEW #( iv_name = |Conjured Mana Cake|
iv_sell_in = 3 iv_sell_in = 3
iv_quality = 6 ) ) ). iv_quality = 10 ) ) ).
DATA(lo_app) = NEW lcl_gilded_rose( it_items = lt_items ). DATA(lo_app) = NEW lcl_gilded_rose( it_items = lt_items ).

View File

@ -23,7 +23,7 @@ int main()
init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 10, 49); init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 10, 49);
init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 5, 49); init_item(items + last++, "Backstage passes to a TAFKAL80ETC concert", 5, 49);
// this Conjured item doesn't yet work properly // this Conjured item doesn't yet work properly
init_item(items + last++, "Conjured Mana Cake", 3, 6); init_item(items + last++, "Conjured Mana Cake", 3, 10);
puts("OMGHAI!"); puts("OMGHAI!");

View File

@ -19,7 +19,7 @@
{:name "Backstage passes to a TAFKAL80ETC concert", :quality 20, :sell-in 15} {:name "Backstage passes to a TAFKAL80ETC concert", :quality 20, :sell-in 15}
{:name "Backstage passes to a TAFKAL80ETC concert", :quality 49, :sell-in 10} {:name "Backstage passes to a TAFKAL80ETC concert", :quality 49, :sell-in 10}
{:name "Backstage passes to a TAFKAL80ETC concert", :quality 49, :sell-in 5} {:name "Backstage passes to a TAFKAL80ETC concert", :quality 49, :sell-in 5}
{:name "Conjured Mana Cake", :quality 6, :sell-in 3}]) {:name "Conjured Mana Cake", :quality 10, :sell-in 3}])
(defn -main [& args] (defn -main [& args]
(let [n-days (if (nil? (first args)) (let [n-days (if (nil? (first args))

View File

@ -71,7 +71,7 @@
("Backstage passes to a TAFKAL80ETC concert" 10 49) ("Backstage passes to a TAFKAL80ETC concert" 10 49)
("Backstage passes to a TAFKAL80ETC concert" 5 49) ("Backstage passes to a TAFKAL80ETC concert" 5 49)
;; this conjured item does not work properly yet ;; this conjured item does not work properly yet
("Conjured Mana Cake" 3 6))) ("Conjured Mana Cake" 3 10)))
(items (loop :for (name sell-in quality) :in descriptions (items (loop :for (name sell-in quality) :in descriptions
:collect (make-instance 'item :collect (make-instance 'item
:name name :name name

View File

@ -115,7 +115,7 @@
("Backstage passes to a TAFKAL80ETC concert" 10 49) ("Backstage passes to a TAFKAL80ETC concert" 10 49)
("Backstage passes to a TAFKAL80ETC concert" 5 49) ("Backstage passes to a TAFKAL80ETC concert" 5 49)
;; this conjured item does not work properly yet ;; this conjured item does not work properly yet
("Conjured Mana Cake" 3 6))) ("Conjured Mana Cake" 3 10)))
(items (loop :for (name sell-in quality) :in descriptions (items (loop :for (name sell-in quality) :in descriptions
:collect (make-item :name name :collect (make-item :name name
:sell-in sell-in :sell-in sell-in

View File

@ -112,7 +112,7 @@
("Backstage passes to a TAFKAL80ETC concert" 10 49) ("Backstage passes to a TAFKAL80ETC concert" 10 49)
("Backstage passes to a TAFKAL80ETC concert" 5 49) ("Backstage passes to a TAFKAL80ETC concert" 5 49)
;; this conjured item does not work properly yet ;; this conjured item does not work properly yet
("Conjured Mana Cake" 3 6))) ("Conjured Mana Cake" 3 10)))
(items (loop :for (name sell-in quality) :in descriptions (items (loop :for (name sell-in quality) :in descriptions
:collect (make-instance 'item :collect (make-instance 'item
:name name :name name

View File

@ -20,7 +20,7 @@ int main()
items.push_back({"Backstage passes to a TAFKAL80ETC concert", 5, 49}); items.push_back({"Backstage passes to a TAFKAL80ETC concert", 5, 49});
// this Conjured item doesn't yet work properly // this Conjured item doesn't yet work properly
items.push_back({"Conjured Mana Cake", 3, 6}); items.push_back({"Conjured Mana Cake", 3, 10});
std::cout << "OMGHAI!" << std::endl; std::cout << "OMGHAI!" << std::endl;

View File

@ -34,7 +34,7 @@ namespace csharp
Quality = 49 Quality = 49
}, },
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 10}
}; };
var app = new GildedRose(Items); var app = new GildedRose(Items);

View File

@ -34,7 +34,7 @@ namespace GildedRoseKata
Quality = 49 Quality = 49
}, },
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 10}
}; };
var app = new GildedRose(Items); var app = new GildedRose(Items);

View File

@ -35,7 +35,7 @@ public static class TextTestFixture
Quality = 49 Quality = 49
}, },
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 10}
}; };
var app = new GildedRose(items); var app = new GildedRose(items);

View File

@ -14,7 +14,7 @@ int main()
Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this Conjured item doesn't yet work properly // this Conjured item doesn't yet work properly
Item("Conjured Mana Cake", 3, 6), Item("Conjured Mana Cake", 3, 10),
]; ];
auto app = new GildedRose(items); auto app = new GildedRose(items);

View File

@ -18,7 +18,7 @@ void example()
Item("Elixir of the Mongoose", 5, 7), Item("Elixir of the Mongoose", 5, 7),
Item("Sulfuras, Hand of Ragnaros", 0, 80), Item("Sulfuras, Hand of Ragnaros", 0, 80),
Item("Backstage passes to a TAFKAL80ETC concert", 15, 20), Item("Backstage passes to a TAFKAL80ETC concert", 15, 20),
Item("Conjured Mana Cake", 3, 6), Item("Conjured Mana Cake", 3, 10),
]; ];
auto app = new GildedRose(items); auto app = new GildedRose(items);
app.updateQuality; app.updateQuality;

View File

@ -13,7 +13,7 @@ main(List<String> args) {
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6) new Item("Conjured Mana Cake", 3, 10)
]; ];
GildedRose app = new GildedRose(items); GildedRose app = new GildedRose(items);

View File

@ -13,7 +13,7 @@
#item{name = "Backstage passes to a TAFKAL80ETC concert", sell_in = 15, quality = 20}, #item{name = "Backstage passes to a TAFKAL80ETC concert", sell_in = 15, quality = 20},
#item{name = "Backstage passes to a TAFKAL80ETC concert", sell_in = 10, quality = 49}, #item{name = "Backstage passes to a TAFKAL80ETC concert", sell_in = 10, quality = 49},
#item{name = "Backstage passes to a TAFKAL80ETC concert", sell_in = 5, quality = 49}, #item{name = "Backstage passes to a TAFKAL80ETC concert", sell_in = 5, quality = 49},
#item{name = "Conjured Mana Cake", sell_in = 3, quality = 6} #item{name = "Conjured Mana Cake", sell_in = 3, quality = 10}
]). ]).
main([Days]) -> main([Days]) ->

View File

@ -31,7 +31,7 @@ program GildedRose_text_test
call init_item(items(last), "Backstage passes to a TAFKAL80ETC concert", 5, 49) call init_item(items(last), "Backstage passes to a TAFKAL80ETC concert", 5, 49)
! this Conjured item doesn't yet work properly ! this Conjured item doesn't yet work properly
last=last+1 last=last+1
call init_item(items(last), "Conjured Mana Cake", 3, 6) call init_item(items(last), "Conjured Mana Cake", 3, 10)
write(*,*) "OMGHAI!" write(*,*) "OMGHAI!"

View File

@ -9,7 +9,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 15, 20 Backstage passes to a TAFKAL80ETC concert, 15, 20
Backstage passes to a TAFKAL80ETC concert, 10, 49 Backstage passes to a TAFKAL80ETC concert, 10, 49
Backstage passes to a TAFKAL80ETC concert, 5, 49 Backstage passes to a TAFKAL80ETC concert, 5, 49
Conjured Mana Cake, 3, 6 Conjured Mana Cake, 3, 10
-------- day 1 -------- -------- day 1 --------
name, sellIn, quality name, sellIn, quality
@ -21,7 +21,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 14, 21 Backstage passes to a TAFKAL80ETC concert, 14, 21
Backstage passes to a TAFKAL80ETC concert, 9, 50 Backstage passes to a TAFKAL80ETC concert, 9, 50
Backstage passes to a TAFKAL80ETC concert, 4, 50 Backstage passes to a TAFKAL80ETC concert, 4, 50
Conjured Mana Cake, 2, 5 Conjured Mana Cake, 2, 8
-------- day 2 -------- -------- day 2 --------
name, sellIn, quality name, sellIn, quality
@ -33,7 +33,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 13, 22 Backstage passes to a TAFKAL80ETC concert, 13, 22
Backstage passes to a TAFKAL80ETC concert, 8, 50 Backstage passes to a TAFKAL80ETC concert, 8, 50
Backstage passes to a TAFKAL80ETC concert, 3, 50 Backstage passes to a TAFKAL80ETC concert, 3, 50
Conjured Mana Cake, 1, 4 Conjured Mana Cake, 1, 6
-------- day 3 -------- -------- day 3 --------
name, sellIn, quality name, sellIn, quality
@ -45,7 +45,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 12, 23 Backstage passes to a TAFKAL80ETC concert, 12, 23
Backstage passes to a TAFKAL80ETC concert, 7, 50 Backstage passes to a TAFKAL80ETC concert, 7, 50
Backstage passes to a TAFKAL80ETC concert, 2, 50 Backstage passes to a TAFKAL80ETC concert, 2, 50
Conjured Mana Cake, 0, 3 Conjured Mana Cake, 0, 4
-------- day 4 -------- -------- day 4 --------
name, sellIn, quality name, sellIn, quality
@ -57,7 +57,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 11, 24 Backstage passes to a TAFKAL80ETC concert, 11, 24
Backstage passes to a TAFKAL80ETC concert, 6, 50 Backstage passes to a TAFKAL80ETC concert, 6, 50
Backstage passes to a TAFKAL80ETC concert, 1, 50 Backstage passes to a TAFKAL80ETC concert, 1, 50
Conjured Mana Cake, -1, 1 Conjured Mana Cake, -1, 0
-------- day 5 -------- -------- day 5 --------
name, sellIn, quality name, sellIn, quality

View File

@ -52,7 +52,7 @@ module Program =
Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 15; Quality = 20}) Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 15; Quality = 20})
Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 10; Quality = 49}) Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 10; Quality = 49})
Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 5; Quality = 49}) Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 5; Quality = 49})
Items.Add({Name = "Conjured Mana Cake"; SellIn = 3; Quality = 6}) Items.Add({Name = "Conjured Mana Cake"; SellIn = 3; Quality = 10})
let app = new GildedRose(Items) let app = new GildedRose(Items)
for i = 0 to 30 do for i = 0 to 30 do

View File

@ -50,7 +50,7 @@ let main argv =
Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 15; Quality = 20}) Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 15; Quality = 20})
Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 10; Quality = 49}) Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 10; Quality = 49})
Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 5; Quality = 49}) Items.Add({Name = "Backstage passes to a TAFKAL80ETC concert"; SellIn = 5; Quality = 49})
Items.Add({Name = "Conjured Mana Cake"; SellIn = 3; Quality = 6}) Items.Add({Name = "Conjured Mana Cake"; SellIn = 3; Quality = 10})
let app = new GildedRose(Items) let app = new GildedRose(Items)
for i = 0 to 30 do for i = 0 to 30 do

View File

@ -20,7 +20,7 @@ func main() {
{"Backstage passes to a TAFKAL80ETC concert", 15, 20}, {"Backstage passes to a TAFKAL80ETC concert", 15, 20},
{"Backstage passes to a TAFKAL80ETC concert", 10, 49}, {"Backstage passes to a TAFKAL80ETC concert", 10, 49},
{"Backstage passes to a TAFKAL80ETC concert", 5, 49}, {"Backstage passes to a TAFKAL80ETC concert", 5, 49},
{"Conjured Mana Cake", 3, 6}, // <-- :O {"Conjured Mana Cake", 3, 10}, // <-- :O
} }
days := 2 days := 2

View File

@ -40,5 +40,5 @@ main = do
, Item "Backstage passes to a TAFKAL80ETC concert" 10 49 , Item "Backstage passes to a TAFKAL80ETC concert" 10 49
, Item "Backstage passes to a TAFKAL80ETC concert" 5 49 , Item "Backstage passes to a TAFKAL80ETC concert" 5 49
-- this conjured item does not work properly yet -- this conjured item does not work properly yet
, Item "Conjured Mana Cake" 3 6 , Item "Conjured Mana Cake" 3 10
] ]

View File

@ -9,7 +9,7 @@
(shop/item "Backstage passes to a TAFKAL80ETC concert" 20 15) (shop/item "Backstage passes to a TAFKAL80ETC concert" 20 15)
(shop/item "Backstage passes to a TAFKAL80ETC concert" 49 10) (shop/item "Backstage passes to a TAFKAL80ETC concert" 49 10)
(shop/item "Backstage passes to a TAFKAL80ETC concert" 49 5) (shop/item "Backstage passes to a TAFKAL80ETC concert" 49 5)
(shop/item "Conjured Mana Cake" 6 3)]) (shop/item "Conjured Mana Cake" 10 3)])
# judge allows for snapshot testing of stdout, much like the texttest tool. # judge allows for snapshot testing of stdout, much like the texttest tool.
# So something like the following would create a janet-native test of the output of shop/run: # So something like the following would create a janet-native test of the output of shop/run:

View File

@ -9,7 +9,7 @@
{ name: "Backstage passes to a TAFKAL80ETC concert", sell_in: 15, quality: 20 }, { 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: 10, quality: 49 },
{ name: "Backstage passes to a TAFKAL80ETC concert", sell_in: 5, quality: 49 }, { name: "Backstage passes to a TAFKAL80ETC concert", sell_in: 5, quality: 49 },
{ name: "Conjured Mana Cake", sell_in: 3, quality: 6} # <-- :O { name: "Conjured Mana Cake", sell_in: 3, quality: 10} # <-- :O
] | ] |
{ items: ., day: 0 } | { items: ., day: 0 } |
recurse(.day += 1 | .items = (.items | update_quality); .day < ($ARGS.named.days // 2 | tonumber)) | recurse(.day += 1 | .items = (.items | update_quality); .day < ($ARGS.named.days // 2 | tonumber)) |

View File

@ -12,7 +12,7 @@ const items = [
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// This Conjured item does not work properly yet // This Conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6), new Item("Conjured Mana Cake", 3, 10),
]; ];
const days = Number(process.argv[2]) || 2; const days = Number(process.argv[2]) || 2;

View File

@ -12,7 +12,7 @@ const items = [
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// This Conjured item does not work properly yet // This Conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6), new Item("Conjured Mana Cake", 3, 10),
]; ];
const days = Number(process.argv[2]) || 2; const days = Number(process.argv[2]) || 2;

View File

@ -12,7 +12,7 @@ const items = [
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// This Conjured item does not work properly yet // This Conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6), new Item("Conjured Mana Cake", 3, 10),
]; ];
const days = Number(process.argv[2]) || 2; const days = Number(process.argv[2]) || 2;

View File

@ -76,7 +76,7 @@ function main(; days::Int64=2)
Item("Backstage passes to a TAFKAL80ETC concert", 15, 20), Item("Backstage passes to a TAFKAL80ETC concert", 15, 20),
Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
Item("Conjured Mana Cake", 3, 6), Item("Conjured Mana Cake", 3, 10),
] ]
for day in 0:days for day in 0:days
println("-------- day $day --------") println("-------- day $day --------")

View File

@ -123,7 +123,7 @@
(make-item name "Backstage passes to a TAFKAL80ETC concert" sellin 10 quality 49) (make-item name "Backstage passes to a TAFKAL80ETC concert" sellin 10 quality 49)
(make-item name "Backstage passes to a TAFKAL80ETC concert" sellin 5 quality 49) (make-item name "Backstage passes to a TAFKAL80ETC concert" sellin 5 quality 49)
;; this conjured item does not work properly yet ;; this conjured item does not work properly yet
(make-item name "Conjured Mana Cake" sellin 3 quality 6)))) (make-item name "Conjured Mana Cake" sellin 3 quality 10))))
(lists:foldl (lambda (day gr) (lists:foldl (lambda (day gr)
(print-day day (gilded-rose-items gr)) (print-day day (gilded-rose-items gr))

View File

@ -31,7 +31,7 @@ begin
InitItem(Items.Elements^[Last], 'Backstage passes to a TAFKAL80ETC concert', 5, 49); InitItem(Items.Elements^[Last], 'Backstage passes to a TAFKAL80ETC concert', 5, 49);
Inc(Last); Inc(Last);
{ this Conjured item doesn't yet work properly } { this Conjured item doesn't yet work properly }
InitItem(Items.Elements^[Last], 'Conjured Mana Cake', 3, 6); InitItem(Items.Elements^[Last], 'Conjured Mana Cake', 3, 10);
Inc(Last); Inc(Last);
Items.Length := Last; Items.Length := Last;

View File

@ -51,7 +51,7 @@ my $items = [
Item->new( # This Conjured item does not work properly yet Item->new( # This Conjured item does not work properly yet
name => 'Conjured Mana Cake', name => 'Conjured Mana Cake',
sell_in => 3, sell_in => 3,
quality => 6 quality => 10
), ),
]; ];

View File

@ -52,7 +52,7 @@ my @items = (
Item.new( # This Conjured item does not work properly yet Item.new( # This Conjured item does not work properly yet
name => 'Conjured Mana Cake', name => 'Conjured Mana Cake',
sell_in => 3, sell_in => 3,
quality => 6 quality => 10
), ),
); );

View File

@ -19,7 +19,7 @@ $items = [
new Item('Backstage passes to a TAFKAL80ETC concert', 10, 49), new Item('Backstage passes to a TAFKAL80ETC concert', 10, 49),
new Item('Backstage passes to a TAFKAL80ETC concert', 5, 49), new Item('Backstage passes to a TAFKAL80ETC concert', 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item('Conjured Mana Cake', 3, 6), new Item('Conjured Mana Cake', 3, 10),
]; ];
$app = new GildedRose($items); $app = new GildedRose($items);

View File

@ -9,7 +9,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 15, 20 Backstage passes to a TAFKAL80ETC concert, 15, 20
Backstage passes to a TAFKAL80ETC concert, 10, 49 Backstage passes to a TAFKAL80ETC concert, 10, 49
Backstage passes to a TAFKAL80ETC concert, 5, 49 Backstage passes to a TAFKAL80ETC concert, 5, 49
Conjured Mana Cake, 3, 6 Conjured Mana Cake, 3, 10
-------- day 1 -------- -------- day 1 --------
name, sellIn, quality name, sellIn, quality
@ -21,7 +21,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 14, 21 Backstage passes to a TAFKAL80ETC concert, 14, 21
Backstage passes to a TAFKAL80ETC concert, 9, 50 Backstage passes to a TAFKAL80ETC concert, 9, 50
Backstage passes to a TAFKAL80ETC concert, 4, 50 Backstage passes to a TAFKAL80ETC concert, 4, 50
Conjured Mana Cake, 2, 5 Conjured Mana Cake, 2, 8
-------- day 2 -------- -------- day 2 --------
name, sellIn, quality name, sellIn, quality
@ -33,7 +33,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 13, 22 Backstage passes to a TAFKAL80ETC concert, 13, 22
Backstage passes to a TAFKAL80ETC concert, 8, 50 Backstage passes to a TAFKAL80ETC concert, 8, 50
Backstage passes to a TAFKAL80ETC concert, 3, 50 Backstage passes to a TAFKAL80ETC concert, 3, 50
Conjured Mana Cake, 1, 4 Conjured Mana Cake, 1, 6
-------- day 3 -------- -------- day 3 --------
name, sellIn, quality name, sellIn, quality
@ -45,7 +45,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 12, 23 Backstage passes to a TAFKAL80ETC concert, 12, 23
Backstage passes to a TAFKAL80ETC concert, 7, 50 Backstage passes to a TAFKAL80ETC concert, 7, 50
Backstage passes to a TAFKAL80ETC concert, 2, 50 Backstage passes to a TAFKAL80ETC concert, 2, 50
Conjured Mana Cake, 0, 3 Conjured Mana Cake, 0, 4
-------- day 4 -------- -------- day 4 --------
name, sellIn, quality name, sellIn, quality
@ -57,7 +57,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 11, 24 Backstage passes to a TAFKAL80ETC concert, 11, 24
Backstage passes to a TAFKAL80ETC concert, 6, 50 Backstage passes to a TAFKAL80ETC concert, 6, 50
Backstage passes to a TAFKAL80ETC concert, 1, 50 Backstage passes to a TAFKAL80ETC concert, 1, 50
Conjured Mana Cake, -1, 1 Conjured Mana Cake, -1, 0
-------- day 5 -------- -------- day 5 --------
name, sellIn, quality name, sellIn, quality

View File

@ -49,7 +49,7 @@ BEGIN
CALL new_item('Backstage passes to a TAFKAL80ETC concert', 10, 49); CALL new_item('Backstage passes to a TAFKAL80ETC concert', 10, 49);
CALL new_item('Backstage passes to a TAFKAL80ETC concert', 5, 49); CALL new_item('Backstage passes to a TAFKAL80ETC concert', 5, 49);
-- this conjured item does not work properly yet ; -- this conjured item does not work properly yet ;
CALL new_item('Conjured Mana Cake', 3, 6); CALL new_item('Conjured Mana Cake', 3, 10);
days := 1; days := 1;
-- when -- when
@ -70,7 +70,7 @@ BEGIN
'Backstage passes to a TAFKAL80ETC concert, 5, 49', 'Backstage passes to a TAFKAL80ETC concert, 5, 49',
'Backstage passes to a TAFKAL80ETC concert, 10, 49', 'Backstage passes to a TAFKAL80ETC concert, 10, 49',
'Backstage passes to a TAFKAL80ETC concert, 15, 20', 'Backstage passes to a TAFKAL80ETC concert, 15, 20',
'Conjured Mana Cake, 3, 6', 'Conjured Mana Cake, 3, 10',
'Elixir of the Mongoose, 5, 7', 'Elixir of the Mongoose, 5, 7',
'Sulfuras, Hand of Ragnaros, -1, 80', 'Sulfuras, Hand of Ragnaros, -1, 80',
'Sulfuras, Hand of Ragnaros, 0, 80', 'Sulfuras, Hand of Ragnaros, 0, 80',
@ -81,7 +81,7 @@ BEGIN
'Backstage passes to a TAFKAL80ETC concert, 4, 50', 'Backstage passes to a TAFKAL80ETC concert, 4, 50',
'Backstage passes to a TAFKAL80ETC concert, 9, 50', 'Backstage passes to a TAFKAL80ETC concert, 9, 50',
'Backstage passes to a TAFKAL80ETC concert, 14, 21', 'Backstage passes to a TAFKAL80ETC concert, 14, 21',
'Conjured Mana Cake, 2, 5', 'Conjured Mana Cake, 2, 8',
'Elixir of the Mongoose, 4, 6', 'Elixir of the Mongoose, 4, 6',
'Sulfuras, Hand of Ragnaros, -1, 80', 'Sulfuras, Hand of Ragnaros, -1, 80',
'Sulfuras, Hand of Ragnaros, 0, 80' 'Sulfuras, Hand of Ragnaros, 0, 80'

View File

@ -19,7 +19,7 @@ CREATE OR REPLACE PACKAGE BODY texttest IS
new_item('Backstage passes to a TAFKAL80ETC concert', 10, 49); new_item('Backstage passes to a TAFKAL80ETC concert', 10, 49);
new_item('Backstage passes to a TAFKAL80ETC concert', 5, 49); new_item('Backstage passes to a TAFKAL80ETC concert', 5, 49);
-- this conjured item does not work properly yet ; -- this conjured item does not work properly yet ;
new_item('Conjured Mana Cake', 3, 6); new_item('Conjured Mana Cake', 3, 10);
END setup; END setup;
PROCEDURE main_test IS PROCEDURE main_test IS
@ -43,7 +43,7 @@ CREATE OR REPLACE PACKAGE BODY texttest IS
put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 15, 20'); put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 15, 20');
put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 10, 49'); put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 10, 49');
put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 5, 49'); put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 5, 49');
put_line(v_expected, 'Conjured Mana Cake, 3, 6'); put_line(v_expected, 'Conjured Mana Cake, 3, 10');
put_line(v_expected, '-------- day 1 --------'); put_line(v_expected, '-------- day 1 --------');
put_line(v_expected, 'name, sellIn, quality'); put_line(v_expected, 'name, sellIn, quality');
put_line(v_expected, '+5 Dexterity Vest, 9, 19'); put_line(v_expected, '+5 Dexterity Vest, 9, 19');
@ -54,7 +54,7 @@ CREATE OR REPLACE PACKAGE BODY texttest IS
put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 14, 21'); put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 14, 21');
put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 9, 50'); put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 9, 50');
put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 4, 50'); put_line(v_expected, 'Backstage passes to a TAFKAL80ETC concert, 4, 50');
put_line(v_expected, 'Conjured Mana Cake, 2, 5'); put_line(v_expected, 'Conjured Mana Cake, 2, 8');
put_line(v_result, 'OMGHAI!'); put_line(v_result, 'OMGHAI!');
l_days := 2; l_days := 2;

View File

@ -20,7 +20,7 @@ var items = {
GildedRose.Item.make("Backstage passes to a TAFKAL80ETC concert", 15, 20), GildedRose.Item.make("Backstage passes to a TAFKAL80ETC concert", 15, 20),
GildedRose.Item.make("Backstage passes to a TAFKAL80ETC concert", 10, 49), GildedRose.Item.make("Backstage passes to a TAFKAL80ETC concert", 10, 49),
GildedRose.Item.make("Backstage passes to a TAFKAL80ETC concert", 5, 49), GildedRose.Item.make("Backstage passes to a TAFKAL80ETC concert", 5, 49),
GildedRose.Item.make("Conjured Mana Cake", 3, 6) GildedRose.Item.make("Conjured Mana Cake", 3, 10)
] ]
}; };

View File

@ -11,7 +11,7 @@ let items: ref<array<Item.t>> = ref([
Item.make(~name="Backstage passes to a TAFKAL80ETC concert", ~sellIn=15, ~quality=20), Item.make(~name="Backstage passes to a TAFKAL80ETC concert", ~sellIn=15, ~quality=20),
Item.make(~name="Backstage passes to a TAFKAL80ETC concert", ~sellIn=10, ~quality=49), Item.make(~name="Backstage passes to a TAFKAL80ETC concert", ~sellIn=10, ~quality=49),
Item.make(~name="Backstage passes to a TAFKAL80ETC concert", ~sellIn=5, ~quality=49), Item.make(~name="Backstage passes to a TAFKAL80ETC concert", ~sellIn=5, ~quality=49),
Item.make(~name="Conjured Mana Cake", ~sellIn=3, ~quality=6), Item.make(~name="Conjured Mana Cake", ~sellIn=3, ~quality=10),
]) ])
let days = Node.Process.argv->Belt.Array.get(2)->Belt.Option.mapWithDefault(31, int_of_string) let days = Node.Process.argv->Belt.Array.get(2)->Belt.Option.mapWithDefault(31, int_of_string)

View File

@ -13,7 +13,7 @@ items = [
Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=10, quality=49), Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=10, quality=49),
Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=5, quality=49), Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=5, quality=49),
# This Conjured item does not work properly yet # This Conjured item does not work properly yet
Item.new(name="Conjured Mana Cake", sell_in=3, quality=6), # <-- :O Item.new(name="Conjured Mana Cake", sell_in=3, quality=10), # <-- :O
] ]
days = 2 days = 2

View File

@ -13,7 +13,7 @@ fn main() {
Item::new("Backstage passes to a TAFKAL80ETC concert", 10, 49), Item::new("Backstage passes to a TAFKAL80ETC concert", 10, 49),
Item::new("Backstage passes to a TAFKAL80ETC concert", 5, 49), Item::new("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
Item::new("Conjured Mana Cake", 3, 6), Item::new("Conjured Mana Cake", 3, 10),
]; ];
let mut rose = GildedRose::new(items); let mut rose = GildedRose::new(items);

View File

@ -12,7 +12,7 @@ object TexttestFixture {
new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 10, 49),
new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
new Item("Conjured Mana Cake", 3, 6) new Item("Conjured Mana Cake", 3, 10)
) )
val app = new GildedRose(items) val app = new GildedRose(items)
val days = if (args.length > 0) args(0).toInt + 1 else 2 val days = if (args.length > 0) args(0).toInt + 1 else 2

View File

@ -12,7 +12,7 @@
(make-item "Backstage passes to a TAFKAL80ETC concert" 10 49) (make-item "Backstage passes to a TAFKAL80ETC concert" 10 49)
(make-item "Backstage passes to a TAFKAL80ETC concert" 5 49) (make-item "Backstage passes to a TAFKAL80ETC concert" 5 49)
;; this conjured item does not work properly yet ;; this conjured item does not work properly yet
(make-item "Conjured Mana Cake" 3 6))) (make-item "Conjured Mana Cake" 3 10)))
(days 2)) (days 2))
(define (loop day) (define (loop day)

View File

@ -10,6 +10,6 @@ INSERT INTO item (name, sellIn, quality) VALUES ('Backstage passes to a TAFKAL80
INSERT INTO item (name, sellIn, quality) VALUES ('Backstage passes to a TAFKAL80ETC concert', 5, 49); INSERT INTO item (name, sellIn, quality) VALUES ('Backstage passes to a TAFKAL80ETC concert', 5, 49);
-- this conjured item does not work properly yet -- this conjured item does not work properly yet
INSERT INTO item (name, sellIn, quality) VALUES ('Conjured Mana Cake', 3, 6); INSERT INTO item (name, sellIn, quality) VALUES ('Conjured Mana Cake', 3, 10);
COMMIT; COMMIT;

View File

@ -10,7 +10,7 @@ let items = [
Item(name: "Backstage passes to a TAFKAL80ETC concert", sellIn: 10, quality: 49), Item(name: "Backstage passes to a TAFKAL80ETC concert", sellIn: 10, quality: 49),
Item(name: "Backstage passes to a TAFKAL80ETC concert", sellIn: 5, quality: 49), Item(name: "Backstage passes to a TAFKAL80ETC concert", sellIn: 5, quality: 49),
// this conjured item does not work properly yet // this conjured item does not work properly yet
Item(name: "Conjured Mana Cake", sellIn: 3, quality: 6), Item(name: "Conjured Mana Cake", sellIn: 3, quality: 10),
] ]
let app = GildedRose(items: items) let app = GildedRose(items: items)

View File

@ -9,7 +9,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 15, 20 Backstage passes to a TAFKAL80ETC concert, 15, 20
Backstage passes to a TAFKAL80ETC concert, 10, 49 Backstage passes to a TAFKAL80ETC concert, 10, 49
Backstage passes to a TAFKAL80ETC concert, 5, 49 Backstage passes to a TAFKAL80ETC concert, 5, 49
Conjured Mana Cake, 3, 6 Conjured Mana Cake, 3, 10
-------- day 1 -------- -------- day 1 --------
name, sellIn, quality name, sellIn, quality
@ -21,7 +21,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 14, 21 Backstage passes to a TAFKAL80ETC concert, 14, 21
Backstage passes to a TAFKAL80ETC concert, 9, 50 Backstage passes to a TAFKAL80ETC concert, 9, 50
Backstage passes to a TAFKAL80ETC concert, 4, 50 Backstage passes to a TAFKAL80ETC concert, 4, 50
Conjured Mana Cake, 2, 4 Conjured Mana Cake, 2, 8
-------- day 2 -------- -------- day 2 --------
name, sellIn, quality name, sellIn, quality
@ -33,7 +33,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 13, 22 Backstage passes to a TAFKAL80ETC concert, 13, 22
Backstage passes to a TAFKAL80ETC concert, 8, 50 Backstage passes to a TAFKAL80ETC concert, 8, 50
Backstage passes to a TAFKAL80ETC concert, 3, 50 Backstage passes to a TAFKAL80ETC concert, 3, 50
Conjured Mana Cake, 1, 2 Conjured Mana Cake, 1, 6
-------- day 3 -------- -------- day 3 --------
name, sellIn, quality name, sellIn, quality
@ -45,7 +45,7 @@ Sulfuras, Hand of Ragnaros, -1, 80
Backstage passes to a TAFKAL80ETC concert, 12, 23 Backstage passes to a TAFKAL80ETC concert, 12, 23
Backstage passes to a TAFKAL80ETC concert, 7, 50 Backstage passes to a TAFKAL80ETC concert, 7, 50
Backstage passes to a TAFKAL80ETC concert, 2, 50 Backstage passes to a TAFKAL80ETC concert, 2, 50
Conjured Mana Cake, 0, 0 Conjured Mana Cake, 0, 4
-------- day 4 -------- -------- day 4 --------
name, sellIn, quality name, sellIn, quality

View File

@ -47,7 +47,7 @@ Module Program
New Item With { New Item With {
.Name = "Conjured Mana Cake", .Name = "Conjured Mana Cake",
.SellIn = 3, .SellIn = 3,
.Quality = 6 .Quality = 10
} }
} }
Dim app = New GildedRose(Items) Dim app = New GildedRose(Items)

View File

@ -13,6 +13,6 @@
<item name="Backstage passes to a TAFKAL80ETC concert" sellin="10" quality="49" /> <item name="Backstage passes to a TAFKAL80ETC concert" sellin="10" quality="49" />
<item name="Backstage passes to a TAFKAL80ETC concert" sellin="5" quality="49" /> <item name="Backstage passes to a TAFKAL80ETC concert" sellin="5" quality="49" />
<!-- this conjured item does not work properly yet --> <!-- this conjured item does not work properly yet -->
<item name="Conjured Mana Cake" sellin="3" quality="6" /> <item name="Conjured Mana Cake" sellin="3" quality="10" />
</items> </items>
</gildedrose> </gildedrose>