Skip to content

Commit

Permalink
(agrf) New test cases for to_grf()
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Jan 6, 2025
1 parent 6fe07af commit 2d4c66d
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 @@ -46,10 +46,18 @@ def test_groundsprite():
assert (temperate_1012 == gs1012.graphics(4, 32).to_image()).all()


def test_groundsprite_to_grf():
assert isinstance(gs1012.to_grf(gs1012.sprites)[0], grf.GroundSprite)


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


def test_parentsprite_to_grf():
assert isinstance(ps1012.to_grf(ps1012.sprites)[0], grf.ParentSprite)


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

Expand Down

0 comments on commit 2d4c66d

Please sign in to comment.