def test_create1(setup): atom1 = Atoms([setup.C, setup.C3, setup.Au]) atom2 = Atoms(['C', 'C', 'Au']) atom3 = Atoms(['C', 6, 'Au']) atom4 = Atoms(['Au', 6, 'C']) assert atom2 == atom3 assert atom2 != atom4 assert atom2.hassame(atom4)
def test_compare1(): # Add new atoms to the set atom1 = Atoms([Atom('C', tag='DZ'), Atom[6]]) atom2 = Atoms([Atom[6], Atom('C', tag='DZ')]) assert atom1.hassame(atom2) assert not atom1.equal(atom2)