changeset 17337:a31b54b5f84a

Use only 1 space between '%!' and start of test/demo code. * libinterp/corefcn/besselj.cc, scripts/miscellaneous/private/__xzip__.m, scripts/statistics/tests/kolmogorov_smirnov_test.m, scripts/ui/msgbox.m, test/global.tst, test/jit.tst: Use only 1 space between '%!' and start of test/demo code.
author Rik <rik@octave.org>
date Wed, 28 Aug 2013 08:29:38 -0700
parents b81b9d079515
children 1c89599167a6
files libinterp/corefcn/besselj.cc scripts/miscellaneous/private/__xzip__.m scripts/statistics/tests/kolmogorov_smirnov_test.m scripts/ui/msgbox.m test/global.tst test/jit.tst
diffstat 6 files changed, 17 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/besselj.cc	Wed Aug 28 08:27:38 2013 -0700
+++ b/libinterp/corefcn/besselj.cc	Wed Aug 28 08:29:38 2013 -0700
@@ -912,7 +912,7 @@
 %!assert (besselh (alpha,1,x,1), (jx + I*yx)*exp(-I*x), 100*eps)
 %!assert (besselh (alpha,2,x,1), (jx - I*yx)*exp(I*x), 100*eps)
 %!
-%!  nix = 0.09822388691172060573913739253 - 0.7110230642207380127317227407*I;
+%! nix = 0.09822388691172060573913739253 - 0.7110230642207380127317227407*I;
 %!
 %!assert (besselj (-alpha,x), yx, 100*eps)
 %!assert (bessely (-alpha,x), -jx, 100*eps)
--- a/scripts/miscellaneous/private/__xzip__.m	Wed Aug 28 08:27:38 2013 -0700
+++ b/scripts/miscellaneous/private/__xzip__.m	Wed Aug 28 08:29:38 2013 -0700
@@ -108,6 +108,7 @@
   f(idx) = files(idx);
 endfunction
 
+
 ## FIXME -- reinstate these tests if we invent a way to test private
 ## functions directly.
 ##
@@ -129,3 +130,4 @@
 ## %!    delete (filename);
 ## %!    rmdir (dirname);
 ## %!  end_unwind_protect
+
--- a/scripts/statistics/tests/kolmogorov_smirnov_test.m	Wed Aug 28 08:27:38 2013 -0700
+++ b/scripts/statistics/tests/kolmogorov_smirnov_test.m	Wed Aug 28 08:29:38 2013 -0700
@@ -121,7 +121,7 @@
 %!error kolmogorov_smirnov_test (1)
 %!error <X must be a vector> kolmogorov_smirnov_test ({}, "unif", 2, 4)
 %!error <no not_a_distcdf or not_a_dist_cdf function found>
-%!  kolmogorov_smirnov_test (1, "not_a_dist");
+%! kolmogorov_smirnov_test (1, "not_a_dist");
 %!error <alternative foo not recognized>
-%!  kolmogorov_smirnov_test (1, "unif", 2, 4, "foo");
+%! kolmogorov_smirnov_test (1, "unif", 2, 4, "foo");
 
--- a/scripts/ui/msgbox.m	Wed Aug 28 08:27:38 2013 -0700
+++ b/scripts/ui/msgbox.m	Wed Aug 28 08:29:38 2013 -0700
@@ -45,10 +45,12 @@
 
 endfunction
 
-%!demo
-%!  disp('- test msgbox message only.');
-%!  msgbox("Below, you should see 3 lines:\nline #1\nline #2, and\nline #3.");
 
 %!demo
-%!  disp('- test msgbox message and caption.');
-%!  msgbox('You should see a single line.','A msgbox');
+%! disp('- test msgbox message only.');
+%! msgbox("Below, you should see 3 lines:\nline #1\nline #2, and\nline #3.");
+
+%!demo
+%! disp('- test msgbox message and caption.');
+%! msgbox('You should see a single line.','A msgbox');
+
--- a/test/global.tst	Wed Aug 28 08:27:38 2013 -0700
+++ b/test/global.tst	Wed Aug 28 08:29:38 2013 -0700
@@ -39,8 +39,8 @@
 %!  global H = 1;
 %!endfunction
 %!test
-%!  f;
-%!  fail ("H");
+%! f;
+%! fail ("H");
 
 %!function f ()
 %!  global H = 1;
--- a/test/jit.tst	Wed Aug 28 08:27:38 2013 -0700
+++ b/test/jit.tst	Wed Aug 28 08:29:38 2013 -0700
@@ -41,9 +41,9 @@
 %! while (1)
 %!   if (1)
 %!     break;
-%!  else
-%!    break;
-%!  endif
+%!   else
+%!     break;
+%!   endif
 %! endwhile
 
 %!testif HAVE_LLVM