Skip to content

Commit

Permalink
(agrf) Add test cases for to_action2()
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Jan 8, 2025
1 parent 2d4c66d commit 3e82253
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions agrf/lib/building/layout_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def test_groundsprite_to_grf():
assert isinstance(gs1012.to_grf(gs1012.sprites)[0], grf.GroundSprite)


def test_groundsprite_to_action2():
assert isinstance(gs1012.to_action2(gs1012.sprites)[0]["sprite"], grf.SpriteRef)


def test_parentsprite():
assert (temperate_1012 == ps1012.graphics(4, 32).to_image()).all()

Expand All @@ -58,6 +62,10 @@ def test_parentsprite_to_grf():
assert isinstance(ps1012.to_grf(ps1012.sprites)[0], grf.ParentSprite)


def test_parentsprite_to_action2():
assert isinstance(ps1012.to_action2(ps1012.sprites)[0]["sprite"], grf.SpriteRef)


def test_layout():
assert (temperate_1012 == l1012.graphics(4, 32).to_image()).all()

Expand Down

0 comments on commit 3e82253

Please sign in to comment.