Browse Source

unittest: testSubtractGold4()

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

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

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