From 46422e4d5cb8fdda1987285d3277f355967ebc4f Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 13:52:01 +0100 Subject: [PATCH] unittest: Edited test for QuizCommand This test tests the print function --- src/test/java/org/bitbiome/commands/QuizCommandTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/bitbiome/commands/QuizCommandTest.java b/src/test/java/org/bitbiome/commands/QuizCommandTest.java index cb16ee6..937b97d 100644 --- a/src/test/java/org/bitbiome/commands/QuizCommandTest.java +++ b/src/test/java/org/bitbiome/commands/QuizCommandTest.java @@ -28,4 +28,9 @@ public class QuizCommandTest { int getRandom = QuizCommand.random(3); assertTrue(getRandom >= 0 && getRandom <= 3); } + + @Test + public void testPrintFunction() { + assertEquals("I am a unit test!", QuizCommand.print("I am a unit test!")); + } }