Skip to content

Commit

Permalink
Fix HumidAir.mixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
portyanikhin committed Dec 18, 2024
1 parent ec9f308 commit 268fea1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/humid_air/test_humid_air_processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,11 @@ def test_mixing(self):
assert self.humid_air.mixing(1, first, 2, second) == self.humid_air.with_state(
InputHumidAir.pressure(self.humid_air.pressure),
InputHumidAir.enthalpy((1 * first.enthalpy + 2 * second.enthalpy) / 3),
InputHumidAir.humidity((1 * first.humidity + 2 * second.humidity) / 3),
InputHumidAir.humidity(
(
1 * first.humidity * (1 + second.humidity)
+ 2 * second.humidity * (1 + first.humidity)
)
/ (1 * (1 + second.humidity) + 2 * (1 + first.humidity))
),
)

0 comments on commit 268fea1

Please sign in to comment.