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

Method testClone

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

Test of clone method, of class Complex.

()

Source from the content-addressed store, hash-verified

379 * Test of clone method, of class Complex.
380 */
381 @Test
382 public void testClone()
383 {
384 System.out.println("clone");
385 Complex clone = a.clone();
386 assertEquals(aClone, a);
387 assertEquals(aClone, clone);
388 clone.setReal(100);
389 assertEquals(aClone, a);
390 assertTrue(!clone.equals(aClone));
391
392 }
393}

Callers

nothing calls this directly

Calls 3

setRealMethod · 0.95
equalsMethod · 0.95
cloneMethod · 0.65

Tested by

no test coverage detected