feat(dommer): the step with a single facility cannot be the 25 % step (clarification 104)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
b4aa608d6d
commit
28a0911825
2 changed files with 43 additions and 10 deletions
|
|
@ -200,6 +200,31 @@ def test_dommene_leses_paa_det_laveste_trinnet_som_gir_25_prosent() -> None:
|
|||
assert dommer.trinn_for_dommene(stige) == Trinnvalg(10, Grunnlag.TRINN_25)
|
||||
|
||||
|
||||
def test_trinnet_med_ett_anlegg_kan_ikke_vaere_25_prosent_trinnet() -> None:
|
||||
"""Clarification 104: step 1 reaches 25 % and so does step 10; step 5 only reaches 5 %."""
|
||||
stige = _stige(n1=(0.3, 10), n5=(0.1, 10), n10=(0.3, 8))
|
||||
assert dommer.trinn_for_dommene(stige) == Trinnvalg(10, Grunnlag.TRINN_25)
|
||||
|
||||
|
||||
def test_naar_bare_ett_anlegg_naar_25_prosent_leses_dommene_paa_5_prosent_trinnet() -> None:
|
||||
"""Clarification 104: there is no 25 % step, and step 1 is the lowest that reaches 5 %."""
|
||||
stige = _stige(n1=(0.3, 10), n5=(0.1, 10), n10=(0.2, 10))
|
||||
assert dommer.trinn_for_dommene(stige) == Trinnvalg(1, Grunnlag.TRINN_5)
|
||||
# the single facility reaches 25 % in too few draws to be the 5 % step: the next step is
|
||||
stige = _stige(n1=(0.3, 7), n5=(0.1, 10))
|
||||
assert dommer.trinn_for_dommene(stige) == Trinnvalg(5, Grunnlag.TRINN_5)
|
||||
# a ladder with the single facility only
|
||||
assert dommer.trinn_for_dommene(_stige(n1=(0.3, 10))) == Trinnvalg(1, Grunnlag.TRINN_5)
|
||||
|
||||
|
||||
def test_regelen_for_trinnet_er_monoton_i_trinnet_med_ett_anlegg() -> None:
|
||||
"""Clarification 104: a weaker single facility no longer gives another step (103 g)."""
|
||||
sterk = _stige(n1=(0.3, 10), n5=(0.3, 10))
|
||||
svak = _stige(n1=(0.03, 10), n5=(0.3, 10))
|
||||
assert dommer.trinn_for_dommene(sterk) == Trinnvalg(5, Grunnlag.TRINN_25)
|
||||
assert dommer.trinn_for_dommene(svak) == Trinnvalg(5, Grunnlag.TRINN_25)
|
||||
|
||||
|
||||
def test_ellers_paa_trinnet_som_gir_5_prosent() -> None:
|
||||
"""25 % is reached in only 7 of 10 draws on the top step; 5 % in 8 of 10 from step 5."""
|
||||
stige = _stige(n1=(0.03, 10), n5=(0.1, 8), n10=(0.3, 7))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue