Skip to content

Commit

Permalink
is this the issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamron committed Dec 24, 2024
1 parent b432ffe commit e1bde3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/calc/test_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
def test_moist_air_gas_constant():
"""Test calculation of gas constant for moist air."""
q = 9 * units('g/kg')
assert_almost_equal(moist_air_gas_constant(q), 288.62 * units('J / kg / K'), 2)
assert_almost_equal(moist_air_gas_constant(q), 288.62 * units('J / K / kg'), 2)
assert_almost_equal(moist_air_gas_constant(0), dry_air_gas_constant)


def test_moist_air_specific_heat_pressure():
"""Test calculation of specific heat for moist air."""
q = 9 * units('g/kg')
assert_almost_equal(moist_air_specific_heat_pressure(q), 1012.36 * units('J / kg /K'), 2)
assert_almost_equal(moist_air_specific_heat_pressure(q), 1012.36 * units('J / K / kg'), 2)
assert_almost_equal(moist_air_specific_heat_pressure(0), dry_air_spec_heat_press)


Expand Down

0 comments on commit e1bde3a

Please sign in to comment.