Exemplo n.º 1
0
    def test_08(self):

        # 244 kt to pa
        # truth value from NASA RP 1046

        Value = A.cas2dp(244, press_units='pa')
        Truth = 9983.7
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 2
0
    def test_06(self):

        # 299 km/h to pa
        # truth value from NASA RP 1046

        Value = A.cas2dp(299, press_units='pa', speed_units='km/h')
        Truth = 4288.5
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 3
0
    def test_07(self):

        # 280 kt to mm HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(280, press_units='mm HG')
        Truth = 99.671
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 4
0
    def test_04(self):

        # 300 mph to in HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(55, press_units='in HG', speed_units='kt')
        Truth = .145052
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 5
0
    def test_05(self):

        # 300 km/h to mm HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(300, press_units='mm HG', speed_units='km/h')
        Truth = 32.385
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 6
0
    def test_02(self):

        # 600 kt to lb/ft**3
        # truth value from NASA RP 1046

        Value = A.cas2dp(700, press_units='psf', speed_units='mph')
        Truth = 1540.37
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 7
0
    def test_03(self):

        # 300 mph to in HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(300, press_units='in HG', speed_units='mph')
        Truth = 3.38145
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 8
0
    def test_16(self):

        # 1000 kt to pa
        # truth value from NASA RP 1046

        Value = A.cas2dp(1000, press_units='pa')
        Truth = 249053
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 9
0
    def test_01(self):

        # 100 kt to lb/ft**3
        # truth value from NASA RP 1046

        Value = A.cas2dp(100, press_units='psf')
        Truth = 34.0493
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 10
0
    def test_14(self):

        # 1700 km/h to pa
        # truth value from NASA RP 1046

        Value = A.cas2dp(1700, press_units='pa', speed_units='km/h')
        Truth = 203298
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 11
0
    def test_15(self):

        # 1000 kt to mm HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(1000, press_units='mm HG')
        Truth = 1868.05
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 12
0
    def test_13(self):

        # 1700 km/h to mm HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(1700, press_units='mm HG', speed_units='km/h')
        Truth = 1524.86
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 13
0
    def test_12(self):

        # 1000 kt to psf
        # truth value from NASA RP 1046

        Value = A.cas2dp(1000, press_units='psf')
        Truth = 5201.59
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 14
0
    def test_11(self):

        # 1000 kt to in HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(1000, press_units='in HG')
        Truth = 73.5454
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 15
0
    def test_10(self):

        # 1000 mph to psf
        # truth value from NASA RP 1046

        Value = A.cas2dp(1000, press_units='psf', speed_units='mph')
        Truth = 3719.98
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 16
0
    def test_09(self):

        # 1000 mph to in HG
        # truth value from NASA RP 1046

        Value = A.cas2dp(1000, press_units='in HG', speed_units='mph')
        Truth = 52.5970
        self.assertLessEqual(RE(Value, Truth), 2e-5)