From 547f3aa1d4186fa852ba7a17725314f705c1a772 Mon Sep 17 00:00:00 2001 From: Shanty97 Date: Sun, 11 Feb 2024 11:57:20 +0530 Subject: [PATCH] #105 Linked the unit tests to the main code --- src/test/java/math/DiceThrowTest.java | 2 +- src/test/java/math/RandomNumberTest.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/math/DiceThrowTest.java b/src/test/java/math/DiceThrowTest.java index f37bf54c..43a1d826 100644 --- a/src/test/java/math/DiceThrowTest.java +++ b/src/test/java/math/DiceThrowTest.java @@ -36,7 +36,7 @@ public class DiceThrowTest { /** - * Test for generating random short number. + * Tests for {@link DiceThrow #throwDice(int, DiceSides)}. */ @Test void test_throwDice() { diff --git a/src/test/java/math/RandomNumberTest.java b/src/test/java/math/RandomNumberTest.java index ba4f5e5e..0745b955 100644 --- a/src/test/java/math/RandomNumberTest.java +++ b/src/test/java/math/RandomNumberTest.java @@ -35,7 +35,7 @@ public class RandomNumberTest { /** - * Test for generating random short number. + * Tests for {@link RandomNumber #getRandomNumber(T, T)}. */ @Test void test_shortRandomNumber() { @@ -47,7 +47,7 @@ void test_shortRandomNumber() { } /** - * Test for generating random integer number. + * Tests for {@link RandomNumber #getRandomNumber(T, T)}. */ @Test void test_intRandomNumber() { @@ -58,7 +58,7 @@ void test_intRandomNumber() { } /** - * Test for generating random long number. + * Tests for {@link RandomNumber #getRandomNumber(T, T)}. */ @Test void test_longRandomNumber() { @@ -70,7 +70,7 @@ void test_longRandomNumber() { } /** - * Test for generating random float number. + * Tests for {@link RandomNumber #getRandomNumber(T, T)}. */ @Test void test_floatRandomNumber() { @@ -82,7 +82,7 @@ void test_floatRandomNumber() { } /** - * Test for generating random double number. + * Tests for {@link RandomNumber #getRandomNumber(T, T)}. */ @Test void test_doubleRandomNumber() { @@ -94,7 +94,7 @@ void test_doubleRandomNumber() { } /** - * Test for invalid argument numbers. + * Tests for {@link RandomNumber #getRandomNumber(T, T)}. */ @Test void test_invalidNumberArguments() {