lawsynth/python/lawsynth-notebook/tests/test_frontier_view.py
2026-08-16 22:04:11 +03:00

7 lines
282 B
Python

from lawsynth_notebook.frontier_view import normalize_frontier
def test_frontier_sorts_by_score_then_complexity():
result = normalize_frontier([{"id":"b","score":2,"complexity":1}, {"id":"a","score":1,"complexity":4}])
assert [item["id"] for item in result] == ["a", "b"]