mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-18 07:51:29 +00:00
Kotlin genereert Java 17 code.
This commit is contained in:
parent
181b48aff7
commit
db21c01767
@ -25,5 +25,5 @@ tasks.test {
|
|||||||
|
|
||||||
// config JVM target to 1.8 for kotlin compilation tasks
|
// config JVM target to 1.8 for kotlin compilation tasks
|
||||||
tasks.withType<KotlinCompile>().configureEach {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "17"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ internal class GildedRoseTest {
|
|||||||
val items = arrayOf<Item>(Item("foo", 0, 0))
|
val items = arrayOf<Item>(Item("foo", 0, 0))
|
||||||
val app = GildedRose(items)
|
val app = GildedRose(items)
|
||||||
app.updateQuality()
|
app.updateQuality()
|
||||||
assertEquals("fixme", app.items[0].name)
|
assertEquals("foo", app.items[0].name)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user