Mercurial > hg > octave-lojdl
changeset 15514:8d64e87c00cf
iscolormap: more tests
author | Carnë Draug <carandraug+dev@gmail.com> |
---|---|
date | Fri, 12 Oct 2012 23:08:55 +0200 |
parents | 7a0a202fedfe |
children | 4beb3a4bd440 |
files | scripts/image/iscolormap.m |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/iscolormap.m +++ b/scripts/image/iscolormap.m @@ -43,3 +43,8 @@ %!assert (iscolormap (jet (64))) %!assert (iscolormap (magic (4)), false) +%!assert (iscolormap ({0 1 0}), false) +%!assert (iscolormap (ones (3,3,3)), false) +%!assert (iscolormap (ones (3,4)), false) +%!assert (iscolormap ([0 0 -2]), false) +%!assert (iscolormap ([0 0 2]), false)