Skip to content

Commit

Permalink
A test that causes a Bus Error 10 for me.
Browse files Browse the repository at this point in the history
This doesn't seem to fail on Master, but does on Cat, for me.
  • Loading branch information
rwest committed Jan 25, 2019
1 parent 3811c2b commit dac978b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions testing/brokenTest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
"""
This scripts runs tests on the database
"""
from rmgpy import settings

import unittest
import rmgpy.molecule.group

import nose
import nose.tools


class TestMoleculeGeneration(unittest.TestCase):
"""
Contains unit tests for the database for rigorous error checking.
"""
@classmethod
def setUpClass(cls):
"""
Load the database before running the tests.
"""
pass

def test_aworking(self):
g = rmgpy.molecule.group.Group()

# Cb-Cs from thermo groups
g.fromAdjacencyList("""
1 * Cb u0 {2,S}
2 Cs u0 {1,S}
""")

g.makeSampleMolecule()

def test_broken(self):
g = rmgpy.molecule.group.Group()

# Cb-Cl from thermo groups
g.fromAdjacencyList("""
1 * Cb u0 {2,S}
2 Cl1s u0 {1,S}
""")

g.makeSampleMolecule()


if __name__ == '__main__':
nose.run(argv=[__file__, '-v', '--nologcapture'], defaultTest=__name__)

0 comments on commit dac978b

Please sign in to comment.