Mercurial > hg > octave-lojdl
changeset 12092:cca16271a517 release-3-2-x
imread.m: fix test
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 14 Sep 2009 07:57:38 +0200 |
parents | 6f1857d0f5c1 |
children | 6e80447eba43 |
files | scripts/ChangeLog scripts/image/imread.m |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-07-23 John W. Eaton <jwe@octave.org> + + * image/imread.m: Fix test. + 2009-06-23 Alexander Mamonov <mamonov@gmail.com> * image/imread.m: New test.
--- a/scripts/image/imread.m +++ b/scripts/image/imread.m @@ -112,6 +112,6 @@ %! fclose(fid); %! A = imread('test.png'); %! delete('test.png'); -%! assert(A(:,:,1), [0, 255, 0; 255, 237, 255; 0, 255, 0]); -%! assert(A(:,:,2), [0, 255, 0; 255, 28, 255; 0, 255, 0]); -%! assert(A(:,:,3), [0, 255, 0; 255, 36, 255; 0, 255, 0]); +%! assert(A(:,:,1), uint8 ([0, 255, 0; 255, 237, 255; 0, 255, 0])); +%! assert(A(:,:,2), uint8 ([0, 255, 0; 255, 28, 255; 0, 255, 0])); +%! assert(A(:,:,3), uint8 ([0, 255, 0; 255, 36, 255; 0, 255, 0]));