MCPcopy Create free account
hub / github.com/CompPhysVienna/n2p2 / test_equal

Method test_equal

test/python/test_Neighbor.py:130–133  ·  view source on GitHub ↗
(self, n1, n2)

Source from the content-addressed store, hash-verified

128 n1.element = n2.element
129 assert n1 < n2, "Wrong ordering of neighbors."
130 def test_equal(self, n1, n2):
131 n1.d = n2.d
132 n1.element = n2.element
133 assert (n1 < n2) is False, "Wrong ordering of neighbors."
134
135class Test___gt__:
136 def test_less_than(self, n1, n2):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected