Skip to content

Commit cd5ee68

Browse files
committed
fixed test_c6h6o4 in pathfinderTest
1 parent 59412af commit cd5ee68

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

rmgpy/molecule/pathfinderTest.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,14 @@ def test_c5h6o2(self):
312312
expected_idx_path = [3, 2, 4, 6]
313313
self.assertEquals(idx_path, expected_idx_path)
314314

315-
@work_in_progress
316315
def test_c6h6o4(self):
317-
# Can't read this InChI:
318-
# the old OpenBabel could read it, but the resulting molecule had an invalid adjacency_list
319-
inchi = "InChI=1S/C6H6O4/c1-2-4-9-6(7)3-5-10-8/h2-3H,1,5H2"
316+
inchi = "InChI=1S/C8H14O4S/c1-3-6-13(2,11)7-8(9)4-5-12-10/h3,6H,1,4-5,7H2,2H3,(H-,10,11)"
320317
mol = Molecule().from_inchi(inchi)
321318
start = mol.atoms[0]
322319
path = find_butadiene_end_with_charge(start)
323320
idx_path = [mol.atoms.index(atom) + 1 for atom in path[0::2]]
324-
325-
expected_idx_path = [1, 2, 4, 9]
326-
self.assertEquals(idx_path, expected_idx_path)
321+
expected_idx_path = [1, 3, 6, 13]
322+
self.assertEqual(idx_path, expected_idx_path)
327323

328324
def test_c6h6o6(self):
329325
inchi = "InChI=1S/C6H6O6/c7-6(2-5-12-9)10-3-1-4-11-8/h1,7H,4-5H2"

0 commit comments

Comments
 (0)