Spaces:
Sleeping
Sleeping
| import json | |
| from pathlib import Path | |
| DATA_DIR = Path(__file__).resolve().parents[1] / "synthetic_dataset" | |
| def _rows(): return [json.loads(l) for l in (DATA_DIR / "notes_500.jsonl").read_text().splitlines() if l.strip()] | |
| def test_no_conflicts(): | |
| for r in _rows(): | |
| labs=[l["cpt"] for l in r["labels"]] | |
| assert not ("22633" in labs and "22558" in labs), "Cannot mix TLIF and ALIF in same case" | |
| print("✅ test_conflicts ready") | |