From 421a9c8314d282bebd612b9de341a5d6ddba8f95 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Fri, 20 Jan 2023 00:03:15 +0100 Subject: [PATCH] unittest: testSubtractGold4() --- 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 f070f7a..8bbb163 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/src/test/java/org/bitbiome/commands/ShopCommandTest.java @@ -59,4 +59,10 @@ public class ShopCommandTest { int result = shop.subtractGold(10, 5); assertEquals(expected, result); } + @Test + public void testSubtractGold4(){ + int expected = 1; + int result = shop.subtractGold(2, 1); + assertEquals(expected, result); + } }