Browse Source

unittest: testSubtractGold8()

remotes/origin/develop
Max Gerbeth 2 years ago
parent
commit
a128c15f5b
  1. 6
      src/test/java/org/bitbiome/commands/ShopCommandTest.java

6
src/test/java/org/bitbiome/commands/ShopCommandTest.java

@ -84,4 +84,10 @@ public class ShopCommandTest {
int result = shop.subtractGold(31, 16); int result = shop.subtractGold(31, 16);
assertEquals(expected, result); assertEquals(expected, result);
} }
@Test
public void testSubtractGold8(){
int expected = 1;
int result = shop.subtractGold(2, 1);
assertEquals(expected, result);
}
} }
Loading…
Cancel
Save