def test_01(self): Value = cl.tas2cl( 80, 20000, 2000, 100, weight_units='lb', area_units='ft**2', speed_units='kt', alt_units='ft', ) Truth = 1.73241190 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_01(self): Value = cl.tas2cl( 80, 20000, 2000, 100, weight_units='lb', area_units='ft**2', speed_units='kt', alt_units='ft', ) Truth = 1.73241190 self.failUnless(RE(Value, Truth) <= 1e-5)
def test_02(self): Value = cl.tas2cl( 80, 10000, 2250, 200, 200, temp_units='K', weight_units='kg', area_units='m**2', speed_units='m/s', alt_units='m', ) Truth = 0.07487161 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_02(self): Value = cl.tas2cl( 80, 10000, 2250, 200, 200, temp_units='K', weight_units='kg', area_units='m**2', speed_units='m/s', alt_units='m', ) Truth = 0.07487161 self.failUnless(RE(Value, Truth) <= 1e-5)