Skip to content

Commit

Permalink
[Test] Add test for elements with multiple matches depending on old s…
Browse files Browse the repository at this point in the history
…tring splitting method
  • Loading branch information
bryanwweber committed Jan 22, 2016
1 parent f95f118 commit c72f1b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interfaces/cython/cantera/test/test_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,11 @@ def setUpClass(cls):
cls.ar_name = ct.Element('argon')
cls.ar_num = ct.Element(18)

def test_element_multiple_possibilities(self):
carbon = ct.Element('Carbon')
self.assertEqual(carbon.name, 'carbon')
self.assertEqual(carbon.symbol, 'C')

def test_element_weight(self):
self.assertNear(self.ar_sym.weight, 39.948)
self.assertNear(self.ar_name.weight, 39.948)
Expand Down

0 comments on commit c72f1b6

Please sign in to comment.