tests/image: comments: specs only
This commit is contained in:
1 parent
e306d5c1d7
commit
a80299dce0
27 files changed
+32
-199
No files matched your search
@@ -1,8 +1,4 @@
|
||||
-- image/ktx tests: KTX2 files from KTX-Software (`ktx create` from PNGs and raw data in uncompressed / packed / float /
|
||||
-- BCn / ETC2 / EAC formats, mips, cube maps, arrays, 3D, Zstandard and ZLIB supercompression; Basis Universal is
|
||||
-- UNSUPPORTED) and KTX1 files from toktx / nvcompress / hand-written ones (big-endian, packed types, row padding,
|
||||
-- KTXorientation) against their sources or reference decodes; our KTX2 files through `ktx validate` / `ktx extract`;
|
||||
-- round trips; errors; the fuzz no-throw pass. Fixtures: tools/fixtures/ktx.py.
|
||||
-- image/ktx tests against KTX-Software (ktx create / validate / extract), toktx and nvcompress (tools/fixtures/ktx.py).
|
||||
local T = require("@tests/T")
|
||||
local Ktx = require("@rosetta/image/ktx")
|
||||
local Bytes = require("@rosetta/core/Bytes")
|
||||
@@ -119,7 +115,6 @@ for _, o in Fx.ours do
|
||||
end
|
||||
t:note("%d of our files pass ktx validate", #Fx.ours)
|
||||
|
||||
-- round trips
|
||||
do
|
||||
local img = Types.Image.new(37, 23)
|
||||
img.pixels = src
|
||||
@@ -139,7 +134,6 @@ do
|
||||
t:check(e2 and e2.code == Err.ARG, "zlib level")
|
||||
end
|
||||
|
||||
-- sniff, info, errors
|
||||
do
|
||||
local c = Fx.cases[1]
|
||||
t:eq(Ktx.sniff(Bytes.reader(buffer.fromstring(c.data))), 1, "sniff KTX2")
|
||||
|
||||
Reference in new issue
Block a user