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

Method testGetConjugate

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

Test of getConjugate method, of class Complex.

()

Source from the content-addressed store, hash-verified

358 * Test of getConjugate method, of class Complex.
359 */
360 @Test
361 public void testGetConjugate()
362 {
363 System.out.println("getConjugate");
364 Complex result = a.getConjugate();
365 assertEquals(aClone, a);
366 assertEquals(new Complex(aClone.getReal(), -aClone.getImag()), result);
367
368 result = c.getConjugate();
369 assertEquals(bClone, b);
370 assertEquals(new Complex(cClone.getReal(), -cClone.getImag()), result);
371
372 result = d.getConjugate();
373 assertEquals(bClone, b);
374 assertEquals(new Complex(dClone.getReal(), -dClone.getImag()), result);
375 }
376
377
378 /**

Callers

nothing calls this directly

Calls 3

getRealMethod · 0.80
getImagMethod · 0.80
getConjugateMethod · 0.65

Tested by

no test coverage detected