From a128c15f5ba011c29198f4b073a1e229e5a3b615 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Wed, 8 Feb 2023 11:00:54 +0100 Subject: [PATCH] unittest: testSubtractGold8() --- 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 69c3de6..9c53114 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/src/test/java/org/bitbiome/commands/ShopCommandTest.java @@ -84,4 +84,10 @@ public class ShopCommandTest { int result = shop.subtractGold(31, 16); assertEquals(expected, result); } + @Test + public void testSubtractGold8(){ + int expected = 1; + int result = shop.subtractGold(2, 1); + assertEquals(expected, result); + } }