Skip to content
Snippets Groups Projects
Commit ba7482ce authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

Tests corrigés

parent f6c7c853
No related branches found
No related tags found
No related merge requests found
Pipeline #1263 passed
...@@ -17,7 +17,7 @@ public class ByteGrayColorTest { ...@@ -17,7 +17,7 @@ public class ByteGrayColorTest {
public void testGetLuminosity_whenColorCreatedWithLuminosity(){ public void testGetLuminosity_whenColorCreatedWithLuminosity(){
ByteGrayColor color1 = new ByteGrayColor(.25); ByteGrayColor color1 = new ByteGrayColor(.25);
ByteGrayColor color2 = new ByteGrayColor(.75); ByteGrayColor color2 = new ByteGrayColor(.75);
assertThat(color1.getLuminosity(), is(closeTo(.25,.0001))); assertThat(color1.getLuminosity(), is(closeTo(.25,.01)));
assertThat(color2.getLuminosity(), is(closeTo(.75,.0001))); assertThat(color2.getLuminosity(), is(closeTo(.75,.01)));
} }
} }
...@@ -16,8 +16,8 @@ class MatrixGrayImageTest { ...@@ -16,8 +16,8 @@ class MatrixGrayImageTest {
@Test @Test
void getHeight() { void getHeight() {
assertThat(new MatrixGrayImage(0,0).getWidth(), is(equalTo(0))); assertThat(new MatrixGrayImage(0,0).getHeight(), is(equalTo(0)));
assertThat(new MatrixGrayImage(10,20).getWidth(), is(equalTo(20))); assertThat(new MatrixGrayImage(10,20).getHeight(), is(equalTo(20)));
assertThat(new MatrixGrayImage(400,300).getWidth(), is(equalTo(300))); assertThat(new MatrixGrayImage(400,300).getHeight(), is(equalTo(300)));
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment