| 1 | """Test suite for the benchmark instruments themselves.
|
| 2 |
|
| 3 | A benchmark that measures with untested instruments cannot make accuracy
|
| 4 | claims. These tests pin the measurement primitives: stream parsing per
|
| 5 | adapter (golden fixtures), token accounting, the command-semantics contract,
|
| 6 | the row contract, oracles, and calibration math.
|
| 7 |
|
| 8 | Run from the repository root:
|
| 9 |
|
| 10 | python3 -m unittest discover -s tests -v
|
| 11 | """
|
| 12 |
|
| 13 | from __future__ import annotations
|
| 14 |
|
| 15 | import sys
|
| 16 | from pathlib import Path
|
| 17 |
|
| 18 | SCRIPTS = Path(__file__).resolve().parents[1] / "scripts"
|
| 19 | if str(SCRIPTS) not in sys.path:
|
| 20 | sys.path.insert(0, str(SCRIPTS))
|