# tests/assets

Fixtures for the tests that need a real file on disk. Only one so far.

## sprite8x8.png

An 8x8 solid magenta square, 76 bytes, generated rather than drawn -- it is a
PNG header, one IDAT of a single repeated RGBA pixel, and an IEND.

It exists for one assertion in `tests/akgl_backends.c`: that
`SPRSAV "assets/sprite8x8.png", 1` reaches SDL_image, decodes, and lands on the
render target as magenta pixels at the coordinate `MOVSPR` put it. Magenta
because nothing else in that test file draws in it, so a stray pixel cannot be
mistaken for this one.

Eight by eight rather than a Commodore sprite's 24x21, deliberately: a sprite
loaded from a file takes the image's own size, and a fixture that happened to be
24x21 could not tell that apart from a hardcoded constant.

libakgl's own fixtures under `deps/libakgl/tests/assets/` are borrowed where they
fit -- the monospaced font is used from there rather than copied. There was no
image small enough to be worth borrowing: the smallest is a 576x384 spritesheet.
