-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
674c36c
commit 2cf291d
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |