aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 18:42:13 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 18:42:13 +0200
commit202759b6752741e32c3b2d3e022ea8d71400188f (patch)
tree761b1cc5dbce011a6b61900124b86b2eed963186 /src/test
parent055976cef0d743dbb910be69c164e43ca641297c (diff)
downloadskyhanni-202759b6752741e32c3b2d3e022ea8d71400188f.tar.gz
skyhanni-202759b6752741e32c3b2d3e022ea8d71400188f.tar.bz2
skyhanni-202759b6752741e32c3b2d3e022ea8d71400188f.zip
idk why this class is cursed
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt b/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt
deleted file mode 100644
index 0ac8cc8de..000000000
--- a/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt
+++ /dev/null
@@ -1,34 +0,0 @@
-package at.hannibal2.skyhanni.test
-
-import at.hannibal2.skyhanni.utils.ItemUtils
-import org.junit.jupiter.api.Test
-
-class ItemUtilsTest {
-
- val items: MutableMap<String, Pair<String, Int>> = mutableMapOf(
- "§5Hoe of Greatest Tilling" to Pair("§5Hoe of Greatest Tilling", 1),
- "§fSilver medal §8x2" to Pair("§fSilver medal", 2),
- "§aJacob's Ticket §8x32" to Pair("§aJacob's Ticket", 32),
- "§9Delicate V" to Pair("§9Delicate V", 1),
- " §81x §9Enchanted Sugar Cane" to Pair("§9Enchanted Sugar Cane", 1),
- "§6Gold medal" to Pair("§6Gold medal", 1),
- " §8+§319k §7Farming XP" to Pair("§7Farming XP", 19_000),
- " §8+§215 §7Garden Experience" to Pair("§7Garden Experience", 15),
- " §8+§c21 Copper" to Pair("Copper", 21),
- " §8+§b10 Bits" to Pair("Bits", 10),
- " §8+§37.2k §7Farming XP" to Pair("§7Farming XP", 7_200),
- )
-
- @Test
- fun testReadItemAmount() {
- for ((itemString, expected) in items) {
- val results = ItemUtils.readItemAmount(itemString)
- assert(results != null) {
- "Could not read item '$itemString'"
- }
- assert(results?.equals(expected) == true) {
- "'${results.toString()}' does not match '$expected'"
- }
- }
- }
-} \ No newline at end of file