Handbook
Glossary
decode-test ( path image-class -- )
Testing image encoders and decoders
Next:
encode-test ( path image-class -- )
Vocabulary
images
.
testing
Inputs
path
a pathname string
image-class
an
object
Outputs
None
Word description
Runs a unit-test on the image at
path
to test the image decoder. The image is decoded and compared against its corresponding
Reference image
.
Definition
USING:
arrays
images.loader
namespaces
tools.test
tools.test.private
;
IN:
images.testing
::
decode-test
( path image-class -- )
f
verbose-tests?
[
path image-class
load-image*
1array
[
path
load-reference-image
]
\
(unit-test)
56
experiment
]
with-variable
;