GildedRose-Refactoring-Kata/scala/src/test/scala/com/gildedrose/GildedRoseTest.scala
2025-10-06 08:22:51 +02:00

14 lines
352 B
Scala

package com.gildedrose
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
class GildedRoseTest extends AnyFlatSpec with Matchers {
it should "foo" in {
val items = Array[Item](Item("foo", 0, 0))
val app = new GildedRose(items)
app.updateQuality()
app.items(0).name should equal("fixme")
}
}