tests for the last few issues (these test scripts should work with recent APIs, while the rest of the test suite needs an overhaul)

This commit is contained in:
John McCardle 2026-01-08 10:31:21 -05:00
commit 2f4ebf3420
21 changed files with 1570 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env python3
import sys
import mcrfpy
print("1 - Loading texture", flush=True)
texture = mcrfpy.Texture("assets/kenney_ice.png", 16, 16)
print("2 - Creating grid", flush=True)
grid = mcrfpy.Grid(grid_size=(10, 10), texture=texture, pos=(0, 0), size=(160, 160))
print("3 - Getting grid point at (3, 5)", flush=True)
point = grid.at(3, 5)
print(f"4 - Point: {point}", flush=True)
print("5 - Getting grid_pos", flush=True)
grid_pos = point.grid_pos
print(f"6 - grid_pos: {grid_pos}", flush=True)
print("PASS", flush=True)
sys.exit(0)