Skip to content
Snippets Groups Projects
Commit 594b42d4 authored by Maxence Antoine's avatar Maxence Antoine
Browse files

Modification Iristest après changement sur Iris

parent 9125316e
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ import static org.junit.jupiter.api.Assertions.*; ...@@ -7,7 +7,7 @@ import static org.junit.jupiter.api.Assertions.*;
class IrisTest { class IrisTest {
Iris iris = new Iris(3.0, 2.8, 4.1, 1.9, "Setosa"); Iris iris = new Iris(2.8, 3.0, 1.9, 4.1, "Setosa");
@Test @Test
void getSepalWidth() { void getSepalWidth() {
...@@ -29,10 +29,6 @@ class IrisTest { ...@@ -29,10 +29,6 @@ class IrisTest {
assertEquals(1.9, iris.getPetalLength()); assertEquals(1.9, iris.getPetalLength());
} }
@Test
void getVariety() {
assertEquals("Setosa", iris.getVariety());
}
@Test @Test
void getDataType() { void getDataType() {
...@@ -49,6 +45,6 @@ class IrisTest { ...@@ -49,6 +45,6 @@ class IrisTest {
@Test @Test
void testToString() { void testToString() {
assertEquals("Iris{sepalWidth=3.0, sepalLength=2.8, petalWidth=4.1, petalLength=1.9}", iris.toString()); assertEquals("Iris{sepalLength=2.8, sepalWidth=3.0, petalLength=1.9, petalWidth=4.1}", iris.toString());
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment