lawsynth/python/lawsynth-bench/tests/test_errors_bench.py

5 lines
207 B
Python
Raw Permalink Normal View History

2026-08-16 22:04:11 +03:00
from lawsynth_bench.errors_bench import classify, error_rate
def test_error_analysis():
assert error_rate([True, False, False]) == 2 / 3
assert classify(["parse: bad", "parse: worse"])["parse"] == 2