Mercurial > hg > octave-lyh
changeset 17214:ea5830dc6b19
test: Correct typo '%assert' -> '%!assert' to have test blocks run.
* libinterp/corefcn/data.cc, scripts/image/rgb2ntsc.m: Correct typo
'%assert' -> '%!assert'.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 08 Aug 2013 12:31:12 -0700 |
parents | 334d8edd48bc |
children | 8b64a1fc3071 |
files | libinterp/corefcn/data.cc scripts/image/rgb2ntsc.m |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc +++ b/libinterp/corefcn/data.cc @@ -4783,9 +4783,9 @@ %! assert (size (x2) == [1, 10] && x2(1) == 1 && x2(10) == 2); %! assert (size (x3) == [1, 10] && x3(1) == 1 && x3(10) == -2); -%assert (linspace ([1, 2; 3, 4], 5, 6), linspace (1, 5, 6)) - -%assert (linspace (0, 1, []), 1) +%! ##assert (linspace ([1, 2; 3, 4], 5, 6), linspace (1, 5, 6)) + +%!assert (linspace (0, 1, []), 1) %!error linspace () %!error linspace (1, 2, 3, 4)
--- a/scripts/image/rgb2ntsc.m +++ b/scripts/image/rgb2ntsc.m @@ -98,9 +98,9 @@ %% Test pure RED, GREEN, BLUE colors -%assert (rgb2ntsc ([1 0 0]), [.299 .587 .114]) -%assert (rgb2ntsc ([0 1 0]), [.596 -.274 -.322]) -%assert (rgb2ntsc ([1 0 1]), [.211 -.523 .312]) +%!assert (rgb2ntsc ([1 0 0]), [.299 .587 .114]) +%!assert (rgb2ntsc ([0 1 0]), [.596 -.274 -.322]) +%!assert (rgb2ntsc ([1 0 1]), [.211 -.523 .312]) %!test %! rgb_map = rand (64, 3);