test(kjoring): the median when exactly half the draws cannot be built
And the docstring of the percentile says how it is computed (clarification 103). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
7f978ccb1c
commit
1a3a2fd5a8
2 changed files with 9 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
"""The run over the draws (chapter 11; clarifications 95 to 102).
|
||||
"""The run over the draws (chapter 11; clarifications 95 to 103).
|
||||
|
||||
Made-up draws only: variants of the made-up set of ``conftest.py``, and invented outcomes per
|
||||
draw for the verdicts and the timeline. Nothing here says anything about the hypothesis.
|
||||
|
|
@ -271,6 +271,11 @@ def test_en_losning_er_felt_av_negativ_median_eller_et_maal_som_ikke_holder() ->
|
|||
assert not kj.losningsdommer([_u()] * 5, Dom.HOLDER).felt
|
||||
# more than half cannot be built: the median ranks below every value
|
||||
assert kj.losningsdommer([None, None, _u()], Dom.HOLDER).median_M1 == -math.inf
|
||||
# exactly half cannot be built: the two middle draws are one without a value and one with,
|
||||
# the median is below every value and the solution cannot carry part I (clarification 103)
|
||||
halvt = kj.losningsdommer([None, _u(5.0), None, _u(7.0)], Dom.HOLDER)
|
||||
assert halvt.median_M1 == -math.inf
|
||||
assert halvt.felt
|
||||
|
||||
|
||||
def test_trinnet_settes_i_normalisering_og_gjelder_alle_scenarioene() -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue