assertFalse(simpleCircle == copy); // test that they are not equal.
// test that the circular references are in tact.
assertTrue(copy == copy.outerToInner.innerToOuter);
assertTrue(copy == copy.pointerToSelf);
}
}
摘自 snowdream
assertFalse(simpleCircle == copy); // test that they are not equal.
// test that the circular references are in tact.
assertTrue(copy == copy.outerToInner.innerToOuter);
assertTrue(copy == copy.pointerToSelf);
}
}
摘自 snowdream