tests/image: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:50:18 -05:00
1 parent e306d5c1d7
commit a80299dce0
27 files changed
+32 -199

No files matched your search

+1 -4
View File
@@ -1,6 +1,4 @@
-- image/xpm tests: files from netpbm / ImageMagick and hand-written ones against the reference decode
-- (ImageMagick), our encoder's files read back by it, round trips, errors, the fuzz no-throw pass.
-- Fixtures: tools/fixtures/xpm.py.
-- image/xpm tests against ImageMagick (tools/fixtures/xpm.py).
local T = require("@tests/T")
local Xpm = require("@rosetta/image/xpm")
local Bytes = require("@rosetta/core/Bytes")
@@ -29,7 +27,6 @@ do
t:eq(Xpm.sniff(Bytes.reader(buffer.fromstring("/* XPM */\n"))), 1, "sniff")
local _, e = Xpm.decode(Bytes.reader(buffer.fromstring('/* XPM */ static char *x[] = {"2 1 5 1", "a c red"};')))
t:check(e and e.code == Err.TRUNCATED, "short colour table")
-- many colours: two chars per pixel
local big = R.image(300, 1, "")
big.pixels = buffer.create(1200)
for i = 0, 299 do