예제 #1
0
 def test_toOrder_third(self):
     """
     Test the conversion of third-order rate coefficient units to an integer
     reaction order.
     """
     self.assertEqual(3, getReactionOrderFromRateCoefficientUnits('m^6/(mol^2*s)'))
     self.assertEqual(3, getReactionOrderFromRateCoefficientUnits('cm^6/(mol^2*s)'))
     self.assertEqual(3, getReactionOrderFromRateCoefficientUnits('m^6/(molecule^2*s)'))
     self.assertEqual(3, getReactionOrderFromRateCoefficientUnits('cm^6/(molecule^2*s)'))
예제 #2
0
 def test_toOrder_second(self):
     """
     Test the conversion of second-order rate coefficient units to an integer
     reaction order.
     """
     self.assertEqual(2, getReactionOrderFromRateCoefficientUnits('m^3/(mol*s)'))
     self.assertEqual(2, getReactionOrderFromRateCoefficientUnits('cm^3/(mol*s)'))
     self.assertEqual(2, getReactionOrderFromRateCoefficientUnits('m^3/(molecule*s)'))
     self.assertEqual(2, getReactionOrderFromRateCoefficientUnits('cm^3/(molecule*s)'))
예제 #3
0
 def test_toOrder_zeroth(self):
     """
     Test the conversion of zeroth-order rate coefficient units to an integer
     reaction order.
     """
     self.assertEqual(0, getReactionOrderFromRateCoefficientUnits('mol/(m^3*s)'))
     self.assertEqual(0, getReactionOrderFromRateCoefficientUnits('mol/(cm^3*s)'))
     self.assertEqual(0, getReactionOrderFromRateCoefficientUnits('molecule/(m^3*s)'))
     self.assertEqual(0, getReactionOrderFromRateCoefficientUnits('molecule/(cm^3*s)'))
예제 #4
0
 def test_toOrder_first(self):
     """
     Test the conversion of first-order rate coefficient units to an integer
     reaction order.
     """
     self.assertEqual(1, getReactionOrderFromRateCoefficientUnits('s^-1'))
 def test_toOrder_first(self):
     """
     Test the conversion of first-order rate coefficient units to an integer
     reaction order.
     """
     self.assertEqual(1, getReactionOrderFromRateCoefficientUnits('s^-1'))