From 8c94c1b739675ffe473d953f7ed7cf466db122fc Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Fri, 20 Jan 2023 00:01:35 +0100 Subject: [PATCH] unittest: testSubtractGold2() --- 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 ab8bcfa..209c01b 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/src/test/java/org/bitbiome/commands/ShopCommandTest.java @@ -47,4 +47,10 @@ public class ShopCommandTest { int result = shop.subtractGold(12, 2); assertEquals(expected, result); } + @Test + public void testSubtractGold2(){ + int expected = 4; + int result = shop.subtractGold(7, 3); + assertEquals(expected, result); + } }