From b012bc345c3816927e8fb5e5979be0a3106195c9 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Wed, 8 Feb 2023 11:33:56 +0100 Subject: [PATCH] unittest: testSubtractGold10() --- 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 f650133..a0352c2 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/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); + } }