Ejemplo n.º 1
0
 def test_basic(self):
     """Basic calculation of some latent heats of condensation."""
     expected = [2531771., 2508371., 2484971.]
     result = Utilities.latent_heat_of_condensation(self.temperature)
     self.assertArrayEqual(result.data, expected)
     self.assertEqual(result.units, Unit('J kg-1'))
Ejemplo n.º 2
0
 def test_basic(self):
     """Basic calculation of some latent heats of condensation."""
     expected = [[2531771, 2508371, 2484971]]
     result = Utilities.latent_heat_of_condensation(self.temperature)
     self.assertArrayAlmostEqual(result.data, expected)