aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-01-26 12:35:17 +0100
committernea <nea@nea.moe>2023-01-26 12:35:17 +0100
commite29354f810f69a509fba8e6c2ac58d1ce65c5483 (patch)
tree887c7eb64f54e98c41543c0f0613151f7715ed09 /src/test
parentf89a90e08d2b6cff70d84bb4c35bbdc8a0b49bc0 (diff)
parentf1a5ba28e92da4f46b39da27277b1c8b7a6ec4bb (diff)
downloadNotEnoughUpdates-disabledoptions.tar.gz
NotEnoughUpdates-disabledoptions.tar.bz2
NotEnoughUpdates-disabledoptions.zip
Merge remote-tracking branch 'origin/master' into disabledoptionsdisabledoptions
Diffstat (limited to 'src/test')
-rw-r--r--src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt
index d91ca09d..870b7e59 100644
--- a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt
+++ b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt
@@ -265,6 +265,16 @@ internal class PetLevelingTest {
1886700
],
"max_level": 200
+ },
+ "BINGO": {
+ "rarity_offset": {
+ "COMMON": 0,
+ "UNCOMMON": 0,
+ "RARE": 0,
+ "EPIC": 0,
+ "LEGENDARY": 0,
+ "MYTHIC": 0
+ }
}
},
"pet_types": {
@@ -357,6 +367,14 @@ internal class PetLevelingTest {
}
@Test
+ fun testBingoPetsLevelLikeCommon() {
+ val levelingC = PetLeveling.getPetLevelingForPet0("BINGO", PetInfoOverlay.Rarity.COMMON)
+ val levelingE = PetLeveling.getPetLevelingForPet0("BINGO", PetInfoOverlay.Rarity.EPIC)
+ Assertions.assertEquals(levelingC.getPetLevel(67790664.0), levelingE.getPetLevel(67790664.0))
+ }
+
+
+ @Test
fun testPetLevelGrandmaWolf() {
val leveling = PetLeveling.getPetLevelingForPet0("GRANDMA_WOLF", PetInfoOverlay.Rarity.LEGENDARY)
val level = leveling.getPetLevel(22_500_000.0)