Mercurial > hg > octave-avbm
changeset 9456:8a082b66c1e0
imread.m: fix test
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 Jul 2009 16:19:20 -0400 |
parents | ee8a035f3997 |
children | f9fb8c1a8e45 |
files | scripts/ChangeLog scripts/image/imread.m |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2009-07-23 John W. Eaton <jwe@octave.org> + * image/imread.m: Fix test. + * plot/legend.m: Process arguments in order, child objects in reverse. Remove special case for single label. New demos.
--- 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]));