Skip to content

Commit

Permalink
Tests: Perceive triplet O2 properly
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Jul 29, 2024
1 parent e6bd6af commit 9974059
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arc/species/species_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,14 @@ def test_mol_from_xyz_atom_id_2(self):
self.assertEqual(mol_ids, res1_ids)
self.assertEqual(mol_ids, res2_ids)

def test_perceiving_o2(self):
"""Test that O2 is correctly perceived"""
o2_xyz = {'symbols': ('O', 'O'), 'isotopes': (16, 16), 'coords': ((0.0, 0.0, 0.6029), (0.0, 0.0, -0.6029))}
o2 = ARCSpecies(label='O2aa', xyz=o2_xyz, multiplicity=3)
self.assertEqual(o2.multiplicity, 3)
self.assertEqual(o2.mol.multiplicity, 3)
self.assertEqual(o2.mol.to_smiles(), '[O][O]')

def test_preserving_multiplicity(self):
"""Test that multiplicity is being preserved, especially when it is guessed differently from xyz"""
multiplicity_list = [2, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1]
Expand Down

0 comments on commit 9974059

Please sign in to comment.