rearranged imports

This commit is contained in:
Niklas Birk 2021-10-10 16:07:56 +02:00
parent 4cfaf3803c
commit d0adbf0acb

View File

@ -1,16 +1,12 @@
package machine_learning.perceptron; package machine_learning.perceptron;
import machine_learning.Vector;
import machine_learning.DataClass; import machine_learning.DataClass;
import org.junit.jupiter.api.BeforeAll; import machine_learning.Vector;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.*;
import org.junit.jupiter.api.TestInstance;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
@TestInstance(TestInstance.Lifecycle.PER_CLASS) @TestInstance(TestInstance.Lifecycle.PER_CLASS)
class PerceptronTest class PerceptronTest
{ {
@ -48,7 +44,7 @@ class PerceptronTest
var actualClass = this.perceptron.classify(vector); var actualClass = this.perceptron.classify(vector);
var expectedClass = DataClass.NEGATIVE; var expectedClass = DataClass.NEGATIVE;
assertEquals(expectedClass, actualClass); Assertions.assertEquals(expectedClass, actualClass);
} }
@Test @Test
@ -59,6 +55,6 @@ class PerceptronTest
var actualClass = this.perceptron.classify(vector); var actualClass = this.perceptron.classify(vector);
var expectedClass = DataClass.POSITIVE; var expectedClass = DataClass.POSITIVE;
assertEquals(expectedClass, actualClass); Assertions.assertEquals(expectedClass, actualClass);
} }
} }