# HG changeset patch # User Rik # Date 1377703778 25200 # Node ID a31b54b5f84a857efae925369204f98312637193 # Parent b81b9d079515fc60486fbee7755e918b72c680ee 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. diff -r b81b9d079515 -r a31b54b5f84a libinterp/corefcn/besselj.cc --- 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) diff -r b81b9d079515 -r a31b54b5f84a scripts/miscellaneous/private/__xzip__.m --- 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 + diff -r b81b9d079515 -r a31b54b5f84a scripts/statistics/tests/kolmogorov_smirnov_test.m --- 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 kolmogorov_smirnov_test ({}, "unif", 2, 4) %!error -%! kolmogorov_smirnov_test (1, "not_a_dist"); +%! kolmogorov_smirnov_test (1, "not_a_dist"); %!error -%! kolmogorov_smirnov_test (1, "unif", 2, 4, "foo"); +%! kolmogorov_smirnov_test (1, "unif", 2, 4, "foo"); diff -r b81b9d079515 -r a31b54b5f84a scripts/ui/msgbox.m --- 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'); + diff -r b81b9d079515 -r a31b54b5f84a test/global.tst --- 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; diff -r b81b9d079515 -r a31b54b5f84a test/jit.tst --- 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