From ee0526ac67e093f77d17747d9316765b2db272a2 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 27 Nov 2024 16:04:05 +0100 Subject: test: Use kotest --- src/test/kotlin/util/skyblock/AbilityUtilsTest.kt | 3 ++- src/test/kotlin/util/skyblock/SackUtilTest.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/test/kotlin/util/skyblock') diff --git a/src/test/kotlin/util/skyblock/AbilityUtilsTest.kt b/src/test/kotlin/util/skyblock/AbilityUtilsTest.kt index abe739d..dbce762 100644 --- a/src/test/kotlin/util/skyblock/AbilityUtilsTest.kt +++ b/src/test/kotlin/util/skyblock/AbilityUtilsTest.kt @@ -1,5 +1,6 @@ package moe.nea.firmament.test.util.skyblock +import io.kotest.core.spec.style.AnnotationSpec import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import kotlin.time.Duration.Companion.minutes @@ -9,7 +10,7 @@ import moe.nea.firmament.test.testutil.ItemResources import moe.nea.firmament.util.skyblock.AbilityUtils import moe.nea.firmament.util.unformattedString -class AbilityUtilsTest { +class AbilityUtilsTest : AnnotationSpec() { fun List.stripDescriptions() = map { it.copy(descriptionLines = it.descriptionLines.map { Text.literal(it.unformattedString) }) diff --git a/src/test/kotlin/util/skyblock/SackUtilTest.kt b/src/test/kotlin/util/skyblock/SackUtilTest.kt index e0e3e63..e1b106e 100644 --- a/src/test/kotlin/util/skyblock/SackUtilTest.kt +++ b/src/test/kotlin/util/skyblock/SackUtilTest.kt @@ -1,12 +1,13 @@ package moe.nea.firmament.test.util.skyblock +import io.kotest.core.spec.style.AnnotationSpec import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import moe.nea.firmament.test.testutil.ItemResources import moe.nea.firmament.util.skyblock.SackUtil import moe.nea.firmament.util.skyblock.SkyBlockItems -class SackUtilTest { +class SackUtilTest : AnnotationSpec() { @Test fun testOneRottenFlesh() { Assertions.assertEquals( -- cgit