Browse Source

unittest: testSubtractGold2()

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

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

@ -47,4 +47,10 @@ public class ShopCommandTest {
int result = shop.subtractGold(12, 2); int result = shop.subtractGold(12, 2);
assertEquals(expected, result); assertEquals(expected, result);
} }
@Test
public void testSubtractGold2(){
int expected = 4;
int result = shop.subtractGold(7, 3);
assertEquals(expected, result);
}
} }
Loading…
Cancel
Save