Browse Source

unittest: testSubtractGold16()

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

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

@ -71,4 +71,11 @@ public class ShopCommandTest {
int result = shop.subtractGold(20, 10); int result = shop.subtractGold(20, 10);
assertEquals(expected, result); assertEquals(expected, result);
} }
@Test
public void testSubtractGold6(){
int expected = 12;
int result = shop.subtractGold(24, 12);
assertEquals(expected, result);
}
} }
Loading…
Cancel
Save