Mercurial > octave-nkf
changeset 14849:f6d3d5b0bd42
test: Use Octave coding conventions for tests for line() and toc().
* line.m, data.cc (toc): Use Octave coding conventions for tests.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 08 Jul 2012 12:00:45 -0700 |
parents | 4563d9935853 |
children | cfb64ea5c6a3 |
files | scripts/plot/line.m src/data.cc |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/line.m Sun Jul 08 11:43:30 2012 -0700 +++ b/scripts/plot/line.m Sun Jul 08 12:00:45 2012 -0700 @@ -48,13 +48,13 @@ %! x = 0:0.3:10; %! y1 = cos (x); %! y2 = sin (x); -%! subplot (3, 1, 1) +%! subplot (3,1,1); %! args = {"color", "b", "marker", "s"}; %! line ([x(:), x(:)], [y1(:), y2(:)], args{:}) %! title ("Test broadcasting for line()") -%! subplot (3, 1, 2) +%! subplot (3,1,2); %! line (x(:), [y1(:), y2(:)], args{:}) -%! subplot (3, 1, 3) +%! subplot (3,1,3); %! line ([x(:), x(:)+pi/2], y1(:), args{:}) %! xlim ([0 10])
--- a/src/data.cc Sun Jul 08 11:43:30 2012 -0700 +++ b/src/data.cc Sun Jul 08 12:00:45 2012 -0700 @@ -5774,8 +5774,8 @@ /* %!shared id %! id = tic (); -%!assert (isa (id, "uint64")); -%!assert (isa (toc (id), "double")); +%!assert (isa (id, "uint64")) +%!assert (isa (toc (id), "double")) */ DEFUN (cputime, args, ,