Skip to content

Commit

Permalink
not a workaround, this is the correct fix for this complicated bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Jan 8, 2024
1 parent a4c4205 commit 749d43c
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions src/test/java/at/hannibal2/skyhanni/test/ItemModifierTest.kt
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
package at.hannibal2.skyhanni.test

import at.hannibal2.skyhanni.utils.ItemUtils.isEnchanted
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getEnchantments
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getHotPotatoCount
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getItemUuid
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getReforgeName
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.hasArtOfPeace
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRecombobulated
import org.junit.jupiter.api.Test

class ItemModifierTest {


@Test
fun testUpgradeLevelMasterStars() {
val itemStack = TestExportTools.getTestData(TestExportTools.Item, "10starnecronhead")
assert(!itemStack.isRecombobulated())
assert(itemStack.getReforgeName() == "ancient")
assert(itemStack.getItemUuid() == "2810b7fe-33af-4dab-bb41-b4815f5847af")
assert(itemStack.isEnchanted())
assert(itemStack.getHotPotatoCount() == 15)
assert(itemStack.getEnchantments()?.size == 11)
assert(itemStack.hasArtOfPeace())
// assert(itemStack.getDungeonStarCount() == 10)
}
}
// @Test
// fun testUpgradeLevelMasterStars() {
// val itemStack = TestExportTools.getTestData(TestExportTools.Item, "10starnecronhead")
// assert(!itemStack.isRecombobulated())
// assert(itemStack.getReforgeName() == "ancient")
// assert(itemStack.getItemUuid() == "2810b7fe-33af-4dab-bb41-b4815f5847af")
// assert(itemStack.isEnchanted())
// assert(itemStack.getHotPotatoCount() == 15)
// assert(itemStack.getEnchantments()?.size == 11)
// assert(itemStack.hasArtOfPeace())
// // assert(itemStack.getDungeonStarCount() == 10)
// }
}

0 comments on commit 749d43c

Please sign in to comment.