From 0ecbfdc69dbae40138ae68ead1d43635d5717c69 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Fri, 20 Jan 2023 00:02:23 +0100 Subject: [PATCH] unittest: testSubtractGold3() --- 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 209c01b..f070f7a 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/src/test/java/org/bitbiome/commands/ShopCommandTest.java @@ -53,4 +53,10 @@ public class ShopCommandTest { int result = shop.subtractGold(7, 3); assertEquals(expected, result); } + @Test + public void testSubtractGold3(){ + int expected = 5; + int result = shop.subtractGold(10, 5); + assertEquals(expected, result); + } }