Skip to content

Commit

Permalink
(agrf) Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 13, 2024
1 parent 00aad78 commit bcb2a41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions agrf/lib/building/layout_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from agrf.lib.building.layout import ADefaultGroundSprite


def test_default_groundsprite():
gs1012 = ADefaultGroundSprite(1012)

graphics = gs1012.graphics(4, 32).to_image()
assert graphics.shape == (127, 256, 4)
assert graphics[64, 128, 1] == 67

0 comments on commit bcb2a41

Please sign in to comment.