MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testSubtract

Method testSubtract

JSAT/test/jsat/math/ComplexTest.java:172–184  ·  view source on GitHub ↗

Test of subtract method, of class Complex.

()

Source from the content-addressed store, hash-verified

170 * Test of subtract method, of class Complex.
171 */
172 @Test
173 public void testSubtract()
174 {
175 System.out.println("subtract");
176 Complex result = a.subtract(b);
177 assertEquals(result, new Complex(-1, -6));
178 assertEquals(aClone, a);
179 assertEquals(bClone, b);
180 result = c.subtract(d);
181 assertEquals(result, new Complex(14, -7));
182 assertEquals(cClone, c);
183 assertEquals(dClone, d);
184 }
185
186 /**
187 * Test of cMul method, of class Complex.

Callers

nothing calls this directly

Calls 1

subtractMethod · 0.45

Tested by

no test coverage detected