# HG changeset patch # User Rik # Date 1377007011 25200 # Node ID f519560bfcb4d42ad5e5ece67df886fe53a0281f # Parent c8f94d9d34d00c6f1bd5c9c9618b58756e4fec34 maint: Use Octave spacing conventions in cset 79d4b6089968. * liboctave/array/Sparse.cc: Use spacing conventions in %!tests, wrap long lines. * scripts/general/private/__isequal__.m: Use true/false rather than logical(1)/logical(0) for clarity. diff -r c8f94d9d34d0 -r f519560bfcb4 liboctave/array/Sparse.cc --- a/liboctave/array/Sparse.cc Tue Aug 20 07:43:10 2013 -0400 +++ b/liboctave/array/Sparse.cc Tue Aug 20 06:56:51 2013 -0700 @@ -2794,17 +2794,21 @@ %! assert (s, sparse ([], [], [], 0, 1)); ## Test (bug #37321) - -%!test a=sparse (0,0); assert (all (a)==sparse ([1])) -%!test a=sparse (0,1); assert (all (a)==sparse ([1])) -%!test a=sparse (1,0); assert (all (a)==sparse ([1])) -%!test a=sparse (1,0); assert (all (a,2)==sparse ([1])) -%!test a=sparse (1,0); assert (isequal (size (all (a,1)),[1 0])) -%!test a=sparse (1,1); assert (all (a)==sparse ([0])), assert (isequal (size (all (a)),[1 1])) -%!test a=sparse (2,1); assert (all (a)==sparse ([0])), assert (isequal (size (all (a)),[1 1])) -%!test a=sparse (1,2); assert (all (a)==sparse ([0])), assert (isequal (size (all (a)),[1 1])) -%!test a=sparse (2,2); assert (isequal(all (a),sparse ([0 0]))) - +%!test a=sparse (0,0); assert (all (a) == sparse ([1])); +%!test a=sparse (0,1); assert (all (a) == sparse ([1])); +%!test a=sparse (1,0); assert (all (a) == sparse ([1])); +%!test a=sparse (1,0); assert (all (a,2) == sparse ([1])); +%!test a=sparse (1,0); assert (size (all (a,1)), [1 0]); +%!test a=sparse (1,1); +%! assert (all (a) == sparse ([0])); +%! assert (size (all (a)), [1 1]); +%!test a=sparse (2,1); +%! assert (all (a) == sparse ([0])); +%! assert (size (all (a)), [1 1]); +%!test a=sparse (1,2); +%! assert (all (a) == sparse ([0])); +%! assert (size (all (a)), [1 1]); +%!test a=sparse (2,2); assert (isequal (all (a), sparse ([0 0]))); */ diff -r c8f94d9d34d0 -r f519560bfcb4 scripts/general/private/__isequal__.m --- a/scripts/general/private/__isequal__.m Tue Aug 20 07:43:10 2013 -0400 +++ b/scripts/general/private/__isequal__.m Tue Aug 20 06:56:51 2013 -0700 @@ -176,9 +176,9 @@ endif if (!t) - t=logical(0); + t = false; else - t=logical(1); + t = true; endif endfunction