Mercurial > hg > octave-lyh
diff test/build-sparse-tests.sh @ 17315:4448cc742880
Use '!' not operator rather than '~' in core m-files.
* scripts/general/interp1.m, scripts/image/rgb2ind.m, scripts/plot/findobj.m,
scripts/polynomial/polyfit.m, test/build-sparse-tests.sh,
test/classes/@Snork/end.m, test/classes/@Snork/mpower.m,
test/classes/@Snork/ne.m, test/classes/@Snork/power.m,
test/classes/@Snork/subsasgn.m, test/classes/@Snork/subsref.m,
test/classes/@Spork/loadobj.m, test/classes/classes.tst:
Use '!' not operator rather than '~' in core m-files.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 17:04:44 -0700 |
parents | 6fe6ac8bbfdb |
children | b81b9d079515 |
line wrap: on
line diff
--- a/test/build-sparse-tests.sh +++ b/test/build-sparse-tests.sh @@ -325,7 +325,7 @@ %!test %! sv = as.^bf; %! fv = af.^bf; -%! idx = find (af~=0); +%! idx = find (af!=0); %! assert (sv(:)(idx), sparse (fv(:)(idx)), 100*eps) EOF @@ -342,7 +342,7 @@ %!test %! sv = as.^bs; %! fv = af.^bf; -%! idx = find (af~=0); +%! idx = find (af!=0); %! assert(sv(:)(idx), sparse (fv(:)(idx)), 100*eps) EOF @@ -577,11 +577,11 @@ %!assert (issparse (as.')) %!assert (issparse (as')) %!assert (issparse (-as)) -%!assert (~as, sparse (~af)) +%!assert (!as, sparse (!af)) %!assert (as.', sparse (af.')); %!assert (as', sparse (af')); %!assert (-as, sparse (-af)); -%!assert (~as, sparse (~af)); +%!assert (!as, sparse (!af)); %!error [i,j] = size (af);as(i-1,j+1); %!error [i,j] = size (af);as(i+1,j-1); %!test @@ -1204,7 +1204,7 @@ gen_section gen_save_tests gen_section -echo '%!test bf = bf+1i*(bf~=0);' >> $TESTS +echo '%!test bf = bf+1i*(bf!=0);' >> $TESTS gen_rectangular_tests gen_section @@ -1242,7 +1242,7 @@ echo '%! as = sparse (af);' >> $TESTS gen_square_tests gen_section -echo '%!test bf = bf+1i*(bf~=0);' >> $TESTS +echo '%!test bf = bf+1i*(bf!=0);' >> $TESTS echo '%! bs = sparse (bf);' >> $TESTS gen_square_tests gen_section