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

Method testMutateConjugate

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

Test of mutateConjugate method, of class Complex.

()

Source from the content-addressed store, hash-verified

341 * Test of mutateConjugate method, of class Complex.
342 */
343 @Test
344 public void testMutateConjugate()
345 {
346 System.out.println("mutateConjugate");
347 a.mutateConjugate();
348 assertEquals(new Complex(aClone.getReal(), -aClone.getImag()), a);
349
350 c.mutateConjugate();
351 assertEquals(new Complex(cClone.getReal(), -cClone.getImag()), c);
352
353 d.mutateConjugate();
354 assertEquals(new Complex(dClone.getReal(), -dClone.getImag()), d);
355 }
356
357 /**
358 * Test of getConjugate method, of class Complex.

Callers

nothing calls this directly

Calls 3

mutateConjugateMethod · 0.80
getRealMethod · 0.80
getImagMethod · 0.80

Tested by

no test coverage detected