feat: add detailed method changes in compatibility analysis and update tests
This commit is contained in:
@@ -72,6 +72,9 @@ def test_divergent_surface_raises_asterisk():
|
||||
assert [m["game"] for m in div["members"]] == ["Game C"]
|
||||
assert div["vs_reference"]["axes"]["methods"] == {"added": 1, "removed": 0, "changed": 0}
|
||||
assert 0 < div["vs_reference"]["overall"] < 100
|
||||
# named detail: *which* class gained *which* method
|
||||
by_owner = div["vs_reference"]["detail"]["methods"]["by_owner"]
|
||||
assert by_owner["CMC_Animo"]["added"] == ["PAUSE"]
|
||||
|
||||
assert lib["cells"]["Game A"]["diverges"] is False
|
||||
assert lib["cells"]["Game C"]["diverges"] is True
|
||||
@@ -116,6 +119,8 @@ def test_markdown_has_matrix_and_asterisk():
|
||||
assert "PIKLIB8.dll" in md
|
||||
assert "\\*" in md # the divergence marker survives to the table
|
||||
assert "vs **A**" in md # the footnote carries the delta
|
||||
assert "**CMC_Animo**" in md # named per-class breakdown
|
||||
assert "+PAUSE" in md # the concrete added method
|
||||
|
||||
|
||||
def test_json_round_trips():
|
||||
|
||||
Reference in New Issue
Block a user