# SPDX-License-Identifier: MIT """Rung 4 in the test suite: the multiply model judges the core (tests/multiply_judge.py). The quick run covers every pair of edge operands plus random ones; ``-m slow`` runs 10^6 cases per form, as the rung requires (scripts/multiply_judge.py runs them in parallel). """ from __future__ import annotations import pytest from tests.multiply_judge import FORMS, LIBRARY, judge pytestmark = pytest.mark.skipif(not LIBRARY.exists(), reason="run scripts/build_referees.py") @pytest.mark.parametrize("form", sorted(FORMS)) def test_multiply_against_model(form): failures, examples = judge(form, 3000, seed=1) assert failures == 0, examples @pytest.mark.slow @pytest.mark.parametrize("form", sorted(FORMS)) def test_multiply_against_model_million(form): failures, examples = judge(form, 1_000_000, seed=2) assert failures == 0, examples