Skip to content

Commit

Permalink
Add unit test for #322
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Nov 7, 2023
1 parent 674c36c commit 2cf291d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/eko/runner/test_parts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from eko.runner import parts


def test_evolve_configs(eko_factory):
# QCD@LO
e10 = eko_factory.get()
assert e10.theory_card.order == (1, 0)
p10 = parts.evolve_configs(e10)
assert p10["matching_order"] == (0, 0)
# QCD@N3LO + QED@N2LO w/o matching_order
eko_factory.theory.order = (4, 3)
eko_factory.theory.matching_order = None
e43 = eko_factory.get({})
assert e43.theory_card.order == (4, 3)
p43 = parts.evolve_configs(e43)
assert p43["matching_order"] == (3, 2)
# QCD@N3LO + QED@N2LO w/ matching_order
eko_factory.theory.matching_order = (3, 0)
e43b = eko_factory.get({})
assert e43b.theory_card.order == (4, 3)
p43b = parts.evolve_configs(e43b)
assert p43b["matching_order"] == (3, 0)

0 comments on commit 2cf291d

Please sign in to comment.