def test_02(self): # Mach 0.7, 59 deg F, K = 0.8 Value = A.mach2temp(.7, 59, .8, temp_units='F') Truth = 21.29253709199 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_02(self): # Mach 0.7, 59 deg F, K = 0.8 Value = A.mach2temp(.7, 59, .8, temp_units='F') Truth = 21.29253709199 self.failUnless(RE(Value, Truth) <= 1e-5)
def test_01(self): # Mach 0.5, 15 deg C, K = 0.5 Value = A.mach2temp(.5, 15, .5) Truth = 7.97195121951 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_01(self): # Mach 0.5, 15 deg C, K = 0.5 Value = A.mach2temp(.5, 15, .5) Truth = 7.97195121951 self.failUnless(RE(Value, Truth) <= 1e-5)