use of nars.subterm.Subterms in project narchy by automenta.
the class TermTest method testHashConsistent.
@Test
public void testHashConsistent() {
Term x = $.the("z");
Subterms a = new UnitSubterm(x);
Subterms b = new ArrayTermVector(x);
assertEquals(a, b);
assertEquals(a.hashCode(), b.hashCode());
assertEquals(a.hashCodeSubterms(), b.hashCodeSubterms());
assertEquals(a.toString(), b.toString());
}
Aggregations