From 4a75478c4df6941aab4df869b9a8359705ec3235 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Fri, 20 Jan 2023 00:04:00 +0100 Subject: [PATCH] unittest: testSubtractGold5() --- src/test/java/org/bitbiome/commands/ShopCommandTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/bitbiome/commands/ShopCommandTest.java b/src/test/java/org/bitbiome/commands/ShopCommandTest.java index 8bbb163..54b35c1 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/src/test/java/org/bitbiome/commands/ShopCommandTest.java @@ -65,4 +65,10 @@ public class ShopCommandTest { int result = shop.subtractGold(2, 1); assertEquals(expected, result); } + @Test + public void testSubtractGold5(){ + int expected = 10; + int result = shop.subtractGold(20, 10); + assertEquals(expected, result); + } }