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

Method testGetImag

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

Test of getImag method, of class Complex.

()

Source from the content-addressed store, hash-verified

80 * Test of getImag method, of class Complex.
81 */
82 @Test
83 public void testGetImag()
84 {
85 System.out.println("getImag");
86 assertEquals(1.0, a.getImag(), 0.0);
87 assertEquals(7.0, b.getImag(), 0.0);
88 assertEquals(-4.0, c.getImag(), 0.0);
89 assertEquals(3.0, d.getImag(), 0.0);
90 }
91
92 /**
93 * Test of mutableAdd method, of class Complex.

Callers

nothing calls this directly

Calls 1

getImagMethod · 0.80

Tested by

no test coverage detected