def test_06(self): Value = U.area_conv(1, from_units='nm**2', to_units='ft**2') Truth = (1852. / 0.3048)**2 self.assertLessEqual(RE(Value, Truth), 1e-5)
def test_04(self): Value = U.area_conv(1, from_units='km**2', to_units='sm**2') Truth = ((1000 / 0.3048) / 5280)**2 self.assertLessEqual(RE(Value, Truth), 1e-5)
def test_02(self): Value = U.area_conv(144, from_units='in**2', to_units='m**2') Truth = 0.3048**2 self.assertLessEqual(RE(Value, Truth), 1e-5)
def test_03(self): Value = U.area_conv(1000, from_units='m**2', to_units='km**2') Truth = 0.001 self.assertLessEqual(RE(Value, Truth), 1e-5)
def test_01(self): Value = U.area_conv(10, from_units='ft**2', to_units='in**2') Truth = 1440 self.assertLessEqual(RE(Value, Truth), 1e-5)