Browse Source

unittest: Edited test for QuizCommand

This test tests the print function
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
46422e4d5c
  1. 5
      src/test/java/org/bitbiome/commands/QuizCommandTest.java

5
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!"));
}
}
Loading…
Cancel
Save