Browse Source

unittest: testSubtractGold10()

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

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

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