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

Tests corrigés

parent 0e0c2c45
Branches
Tags
No related merge requests found
...@@ -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)));
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment