# HG changeset patch # User Rik # Date 1341774045 25200 # Node ID f6d3d5b0bd4218deb04be8691e0fa733e40f3fc2 # Parent 4563d99358532978d69b0abda3c91b97e63bc454 test: Use Octave coding conventions for tests for line() and toc(). * line.m, data.cc (toc): Use Octave coding conventions for tests. diff -r 4563d9935853 -r f6d3d5b0bd42 scripts/plot/line.m --- 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]) diff -r 4563d9935853 -r f6d3d5b0bd42 src/data.cc --- 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, ,