Skip to content

Commit

Permalink
fixed unit test logic bug. Code now builds successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsingal committed Oct 21, 2024
1 parent 5a2c7f8 commit e771c31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/python/test_kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,8 +1498,8 @@ def getK(gas, T, P, X):
k_linearBurke = getK(gas_linearBurke, T, P,'O2:1')
assert k_baseline == approx(k_linearBurke)
# collider 'H2O' must behave as 'M' if 'M' were eval. at 10x the pressure
k_baseline = getK(gas_baseline, T, P,'H2O:1')
k_linearBurke = getK(gas_linearBurke, T, P*10,'H2O:1')
k_baseline = getK(gas_baseline, T, P*10,'H2O:1')
k_linearBurke = getK(gas_linearBurke, T, P,'H2O:1')
assert k_baseline == approx(k_linearBurke)

def test_linearburke_troe(self):
Expand All @@ -1520,8 +1520,8 @@ def getK(gas, T, P, X):
k_linearBurke = getK(gas_linearBurke, T, P,'O2:1')
assert k_baseline == approx(k_linearBurke)
# collider 'H2O' must behave as 'M' if 'M' were eval. at 10x the pressure
k_baseline = getK(gas_baseline, T, P,'H2O:1')
k_linearBurke = getK(gas_linearBurke, T, P*10,'H2O:1')
k_baseline = getK(gas_baseline, T, P*10,'H2O:1')
k_linearBurke = getK(gas_linearBurke, T, P,'H2O:1')
assert k_baseline == approx(k_linearBurke)

def test_linearburke_chebyshev(self):
Expand All @@ -1542,8 +1542,8 @@ def getK(gas, T, P, X):
k_linearBurke = getK(gas_linearBurke, T, P,'O2:1')
assert k_baseline == approx(k_linearBurke)
# collider 'H2O' must behave as 'M' if 'M' were eval. at 10x the pressure
k_baseline = getK(gas_baseline, T, P,'H2O:1')
k_linearBurke = getK(gas_linearBurke, T, P*10,'H2O:1')
k_baseline = getK(gas_baseline, T, P*10,'H2O:1')
k_linearBurke = getK(gas_linearBurke, T, P,'H2O:1')
assert k_baseline == approx(k_linearBurke)

class TestChebyshevReaction:
Expand Down

0 comments on commit e771c31

Please sign in to comment.