mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
* converted Java TextestFixture to scala
This commit is contained in:
parent
3655d5edc7
commit
46d0586658
@ -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),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user