From d0adbf0acb2e045abd38a20efe09333ab7cf4be6 Mon Sep 17 00:00:00 2001 From: Niklas Birk Date: Sun, 10 Oct 2021 16:07:56 +0200 Subject: [PATCH] rearranged imports --- test/machine_learning/perceptron/PerceptronTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/machine_learning/perceptron/PerceptronTest.java b/test/machine_learning/perceptron/PerceptronTest.java index 4e3ae25..9b56920 100644 --- a/test/machine_learning/perceptron/PerceptronTest.java +++ b/test/machine_learning/perceptron/PerceptronTest.java @@ -1,16 +1,12 @@ package machine_learning.perceptron; -import machine_learning.Vector; import machine_learning.DataClass; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.TestInstance; +import machine_learning.Vector; +import org.junit.jupiter.api.*; import java.util.ArrayList; import java.util.List; -import static org.junit.jupiter.api.Assertions.*; - @TestInstance(TestInstance.Lifecycle.PER_CLASS) class PerceptronTest { @@ -48,7 +44,7 @@ class PerceptronTest var actualClass = this.perceptron.classify(vector); var expectedClass = DataClass.NEGATIVE; - assertEquals(expectedClass, actualClass); + Assertions.assertEquals(expectedClass, actualClass); } @Test @@ -59,6 +55,6 @@ class PerceptronTest var actualClass = this.perceptron.classify(vector); var expectedClass = DataClass.POSITIVE; - assertEquals(expectedClass, actualClass); + Assertions.assertEquals(expectedClass, actualClass); } } \ No newline at end of file