add dead simple tests for PPM files
This commit is contained in:
parent
6f654e32bc
commit
158b279926
6 changed files with 17 additions and 0 deletions
|
@ -10,6 +10,7 @@ import
|
||||||
test_paints,
|
test_paints,
|
||||||
test_paths,
|
test_paths,
|
||||||
test_png,
|
test_png,
|
||||||
|
test_ppm,
|
||||||
test_qoi,
|
test_qoi,
|
||||||
test_svg,
|
test_svg,
|
||||||
../examples/text,
|
../examples/text,
|
||||||
|
|
8
tests/fileformats/ppm/feep.p3.master.ppm
Normal file
8
tests/fileformats/ppm/feep.p3.master.ppm
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
P3
|
||||||
|
# feep.p3.master.ppm
|
||||||
|
4 4
|
||||||
|
15
|
||||||
|
0 0 0 0 0 0 0 0 0 15 0 15
|
||||||
|
0 0 0 0 15 7 0 0 0 0 0 0
|
||||||
|
0 0 0 0 0 0 0 15 7 0 0 0
|
||||||
|
15 0 15 0 0 0 0 0 0 0 0 0
|
BIN
tests/fileformats/ppm/feep.p3.ppm
Normal file
BIN
tests/fileformats/ppm/feep.p3.ppm
Normal file
Binary file not shown.
BIN
tests/fileformats/ppm/feep.p6.master.ppm
Normal file
BIN
tests/fileformats/ppm/feep.p6.master.ppm
Normal file
Binary file not shown.
BIN
tests/fileformats/ppm/feep.p6.ppm
Normal file
BIN
tests/fileformats/ppm/feep.p6.ppm
Normal file
Binary file not shown.
8
tests/test_ppm.nim
Normal file
8
tests/test_ppm.nim
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import pixie/fileformats/ppm
|
||||||
|
|
||||||
|
block:
|
||||||
|
for format in @["p3", "p6"]:
|
||||||
|
let image = decodePpm(readFile(
|
||||||
|
"tests/fileformats/ppm/feep." & $format & ".master.ppm"
|
||||||
|
))
|
||||||
|
writeFile("tests/fileformats/ppm/feep." & $format & ".ppm", encodePpm(image))
|
Loading…
Reference in a new issue