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

Added test class for Complex

parent c3aaad1c
No related branches found
No related tags found
No related merge requests found
......@@ -86,12 +86,6 @@ public class ComplexTest {
assertThat(()->zero.reciprocal(), throwsException(ArithmeticException.class));
}
@Test
void testSubtract(){
assertThat(zero.subtract(one), is(equalTo(minusOne)));
assertThat(one.subtract(i), is(equalTo(oneMinusI)));
}
@Test
void testDivide(){
assertThat(onePlusI.divide(Complex.ONE), equalTo(onePlusI));
......@@ -133,4 +127,5 @@ public class ComplexTest {
assertThat(twoI.toString(), is(equalTo("2.0i")));
assertThat(two.toString(), is(equalTo("2.0")));
}
}
\ 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