From 72aa9c05f79266644118cbc8c5bfa5962c7f8ebe Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Thu, 19 Jan 2023 23:58:16 +0100 Subject: [PATCH] unittest: testSubtractGold1() --- 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 9359232..ab8bcfa 100755 --- a/src/test/java/org/bitbiome/commands/ShopCommandTest.java +++ b/src/test/java/org/bitbiome/commands/ShopCommandTest.java @@ -41,4 +41,10 @@ public class ShopCommandTest { int result = shop.subtractGold(3, 2); assertEquals(expected, result); } + @Test + public void testSubtractGold1(){ + int expected = 10; + int result = shop.subtractGold(12, 2); + assertEquals(expected, result); + } }