test: cover geometry contract
Browse files
tests/test_benchmark_pipeline.py
CHANGED
|
@@ -4,6 +4,8 @@ from benchmark_pipeline import run_benchmark
|
|
| 4 |
def test_deterministic_benchmark_is_repeatable(tmp_path):
|
| 5 |
report = run_benchmark(tmp_path, sizes=(16, 24), view_counts=(1, 2, 3, 4), repeats=2)
|
| 6 |
assert report["all_deterministic"] is True
|
|
|
|
|
|
|
| 7 |
assert len(report["rows"]) == 8
|
| 8 |
assert all(row["metrics"]["point_count"] > 0 for row in report["rows"])
|
| 9 |
assert all(
|
|
|
|
| 4 |
def test_deterministic_benchmark_is_repeatable(tmp_path):
|
| 5 |
report = run_benchmark(tmp_path, sizes=(16, 24), view_counts=(1, 2, 3, 4), repeats=2)
|
| 6 |
assert report["all_deterministic"] is True
|
| 7 |
+
assert report["geometry_contract"]["all_passed"] is True
|
| 8 |
+
assert all(row["rmse"] <= 1e-5 for row in report["geometry_contract"]["rows"])
|
| 9 |
assert len(report["rows"]) == 8
|
| 10 |
assert all(row["metrics"]["point_count"] > 0 for row in report["rows"])
|
| 11 |
assert all(
|