* converted Java TextestFixture to scala

This commit is contained in:
Ralf Comtesse 2025-09-15 15:05:50 +02:00
parent 3655d5edc7
commit 46d0586658

View File

@ -1,15 +1,15 @@
package com.gildedrose package com.gildedrose
object TexttestFixture { object TexttestFixture {
@main
def main(args: Array[String]): Unit = { def main(args: Array[String]): Unit = {
System.out.println("OMGHAI!") System.out.println("OMGHAI!")
val items = Array[Item]( val items = Array[Item](
Item("+5 Dexterity Vest", 10, 20), Item("+5 Dexterity Vest", 10, 20), //
Item("Aged Brie", 2, 0), Item("Aged Brie", 2, 0), //
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("Sulfuras, Hand of Ragnaros", -1, 80), Item("Sulfuras, Hand of Ragnaros", -1, 80),
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),