Browse Source

unittest: testSubtractGold5()

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

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

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