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

Method testGetReal

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

Test of getReal method, of class Complex.

()

Source from the content-addressed store, hash-verified

67 * Test of getReal method, of class Complex.
68 */
69 @Test
70 public void testGetReal()
71 {
72 System.out.println("getReal");
73 assertEquals(2.0, a.getReal(), 0.0);
74 assertEquals(3.0, b.getReal(), 0.0);
75 assertEquals(9.0, c.getReal(), 0.0);
76 assertEquals(-5.0, d.getReal(), 0.0);
77 }
78
79 /**
80 * Test of getImag method, of class Complex.

Callers

nothing calls this directly

Calls 1

getRealMethod · 0.80

Tested by

no test coverage detected