hiscore plugin: add boss hiscores
Co-authored-by: Abex <mii7303@gmail.com> Co-authored-by: Gamma91 <bramvgemert@gmail.com>
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.hiscore;
|
||||
|
||||
import static net.runelite.client.plugins.hiscore.HiscorePanel.formatLevel;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import org.junit.Test;
|
||||
|
||||
public class HiscorePanelTest
|
||||
@@ -35,4 +37,14 @@ public class HiscorePanelTest
|
||||
{
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFormatLevel()
|
||||
{
|
||||
assertEquals("398", formatLevel(398));
|
||||
assertEquals("5000", formatLevel(5000));
|
||||
assertEquals("7682", formatLevel(7682));
|
||||
assertEquals("12k", formatLevel(12398));
|
||||
assertEquals("219k", formatLevel(219824));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user