Mercurial > hg > octave-nkf
changeset 17338:1c89599167a6
maint: End m-files with 1 blank line.
Simplifies automated grammarchecking script.
* scripts/@ftp/ascii.m, scripts/@ftp/binary.m, scripts/@ftp/cd.m,
scripts/@ftp/close.m, scripts/@ftp/delete.m, scripts/@ftp/dir.m,
scripts/@ftp/display.m, scripts/@ftp/ftp.m, scripts/@ftp/loadobj.m,
scripts/@ftp/mget.m, scripts/@ftp/mkdir.m, scripts/@ftp/mput.m,
scripts/@ftp/rename.m, scripts/@ftp/rmdir.m, scripts/@ftp/saveobj.m,
scripts/audio/lin2mu.m, scripts/audio/loadaudio.m, scripts/audio/mu2lin.m,
scripts/audio/record.m, scripts/audio/saveaudio.m, scripts/audio/setaudio.m,
scripts/deprecated/__error_text__.m, scripts/deprecated/cut.m,
scripts/deprecated/error_text.m, scripts/deprecated/isstr.m,
scripts/deprecated/polyderiv.m, scripts/deprecated/studentize.m,
scripts/deprecated/sylvester_matrix.m, scripts/general/bicubic.m,
scripts/general/celldisp.m, scripts/general/colon.m,
scripts/general/cplxpair.m, scripts/general/del2.m, scripts/general/display.m,
scripts/general/isdir.m, scripts/general/isequaln.m, scripts/general/loadobj.m,
scripts/general/private/__isequal__.m, scripts/general/private/__splinen__.m,
scripts/general/profexplore.m, scripts/general/quadgk.m,
scripts/general/randi.m, scripts/general/repmat.m, scripts/general/saveobj.m,
scripts/geometry/delaunay.m, scripts/help/__unimplemented__.m,
scripts/help/doc_cache_create.m, scripts/help/get_first_help_sentence.m,
scripts/help/help.m, scripts/help/print_usage.m,
scripts/help/private/__additional_help_message__.m,
scripts/help/private/__strip_html_tags__.m, scripts/help/type.m,
scripts/image/imfinfo.m, scripts/image/imformats.m, scripts/image/imread.m,
scripts/image/imwrite.m, scripts/image/private/__imfinfo__.m,
scripts/image/private/__imread__.m, scripts/image/private/__imwrite__.m,
scripts/image/private/imageIO.m, scripts/image/private/imwrite_filename.m,
scripts/image/private/ind2x.m, scripts/io/beep.m, scripts/io/strread.m,
scripts/io/textread.m, scripts/io/textscan.m, scripts/linear-algebra/krylov.m,
scripts/linear-algebra/subspace.m, scripts/miscellaneous/bug_report.m,
scripts/miscellaneous/bunzip2.m, scripts/miscellaneous/cast.m,
scripts/miscellaneous/copyfile.m, scripts/miscellaneous/debug.m,
scripts/miscellaneous/dir.m, scripts/miscellaneous/dump_prefs.m,
scripts/miscellaneous/error_ids.m, scripts/miscellaneous/fileattrib.m,
scripts/miscellaneous/gunzip.m, scripts/miscellaneous/isdeployed.m,
scripts/miscellaneous/ismac.m, scripts/miscellaneous/mex.m,
scripts/miscellaneous/mexext.m, scripts/miscellaneous/mkoctfile.m,
scripts/miscellaneous/movefile.m, scripts/miscellaneous/namelengthmax.m,
scripts/miscellaneous/news.m, scripts/miscellaneous/pack.m,
scripts/miscellaneous/perl.m,
scripts/miscellaneous/private/display_info_file.m,
scripts/miscellaneous/python.m, scripts/miscellaneous/rmappdata.m,
scripts/miscellaneous/run.m, scripts/miscellaneous/tar.m,
scripts/miscellaneous/tempname.m, scripts/miscellaneous/untar.m,
scripts/miscellaneous/unzip.m, scripts/miscellaneous/what.m,
scripts/miscellaneous/zip.m, scripts/optimization/fminunc.m,
scripts/optimization/fsolve.m, scripts/optimization/fzero.m,
scripts/optimization/glpk.m, scripts/optimization/optimget.m,
scripts/optimization/optimset.m, scripts/optimization/qp.m,
scripts/optimization/sqp.m, scripts/path/pathdef.m, scripts/pkg/pkg.m,
scripts/pkg/private/build.m, scripts/pkg/private/describe.m,
scripts/pkg/private/dirempty.m, scripts/pkg/private/get_forge_download.m,
scripts/pkg/private/get_forge_pkg.m,
scripts/pkg/private/get_unsatisfied_deps.m, scripts/pkg/private/install.m,
scripts/pkg/private/is_architecture_dependent.m,
scripts/pkg/private/list_forge_packages.m, scripts/pkg/private/rebuild.m,
scripts/pkg/private/shell.m, scripts/pkg/private/uninstall.m,
scripts/plot/axes.m, scripts/plot/box.m, scripts/plot/closereq.m,
scripts/plot/diffuse.m, scripts/plot/ezpolar.m, scripts/plot/findfigs.m,
scripts/plot/gco.m, scripts/plot/guidata.m, scripts/plot/guihandles.m,
scripts/plot/hdl2struct.m, scripts/plot/linkprop.m, scripts/plot/peaks.m,
scripts/plot/print.m, scripts/plot/private/__add_datasource__.m,
scripts/plot/private/__axis_label__.m, scripts/plot/private/__clabel__.m,
scripts/plot/private/__color_str_rgb__.m, scripts/plot/private/__contour__.m,
scripts/plot/private/__default_plot_options__.m,
scripts/plot/private/__errcomm__.m, scripts/plot/private/__file_filter__.m,
scripts/plot/private/__fltk_file_filter__.m,
scripts/plot/private/__getlegenddata__.m,
scripts/plot/private/__gnuplot_open_stream__.m,
scripts/plot/private/__gnuplot_print__.m,
scripts/plot/private/__go_draw_axes__.m,
scripts/plot/private/__interp_cube__.m, scripts/plot/private/__is_function__.m,
scripts/plot/private/__line__.m, scripts/plot/private/__marching_cube__.m,
scripts/plot/private/__next_line_style__.m, scripts/plot/private/__patch__.m,
scripts/plot/private/__pie__.m, scripts/plot/private/__pltopt__.m,
scripts/plot/private/__quiver__.m, scripts/plot/private/__scatter__.m,
scripts/plot/private/__stem__.m, scripts/plot/private/__uigetdir_fltk__.m,
scripts/plot/private/__uigetfile_fltk__.m,
scripts/plot/private/__uiobject_split_args__.m,
scripts/plot/private/__uiputfile_fltk__.m, scripts/plot/refresh.m,
scripts/plot/saveas.m, scripts/plot/shg.m, scripts/plot/specular.m,
scripts/plot/sphere.m, scripts/plot/struct2hdl.m, scripts/plot/subplot.m,
scripts/plot/uicontextmenu.m, scripts/plot/uicontrol.m, scripts/plot/uipanel.m,
scripts/plot/uipushtool.m, scripts/plot/uiresume.m,
scripts/plot/uitoggletool.m, scripts/plot/uitoolbar.m, scripts/plot/uiwait.m,
scripts/plot/waitforbuttonpress.m, scripts/polynomial/pchip.m,
scripts/polynomial/polyeig.m, scripts/polynomial/ppval.m,
scripts/prefs/addpref.m, scripts/prefs/getpref.m, scripts/prefs/ispref.m,
scripts/prefs/private/loadprefs.m, scripts/prefs/private/prefsfile.m,
scripts/prefs/private/saveprefs.m, scripts/prefs/setpref.m,
scripts/set/private/validargs.m, scripts/set/unique.m,
scripts/signal/arch_fit.m, scripts/signal/arch_rnd.m,
scripts/signal/arch_test.m, scripts/signal/arma_rnd.m,
scripts/signal/durbinlevinson.m, scripts/signal/fractdiff.m,
scripts/signal/freqz.m, scripts/signal/freqz_plot.m, scripts/signal/hurst.m,
scripts/signal/periodogram.m, scripts/signal/private/rectangle_lw.m,
scripts/signal/private/rectangle_sw.m, scripts/signal/private/triangle_sw.m,
scripts/signal/spectral_adf.m, scripts/signal/spectral_xdf.m,
scripts/signal/stft.m, scripts/signal/synthesis.m, scripts/signal/yulewalker.m,
scripts/sparse/colperm.m, scripts/sparse/eigs.m, scripts/sparse/etreeplot.m,
scripts/sparse/gmres.m, scripts/sparse/private/__sprand_impl__.m,
scripts/sparse/spdiags.m, scripts/sparse/sprandn.m, scripts/specfun/bessel.m,
scripts/specfun/betaln.m, scripts/specfun/expint.m,
scripts/special-matrix/gallery.m, scripts/startup/__finish__.m,
scripts/statistics/base/qqplot.m, scripts/statistics/distributions/tcdf.m,
scripts/statistics/distributions/wienrnd.m,
scripts/statistics/models/logistic_regression.m,
scripts/statistics/models/private/logistic_regression_derivatives.m,
scripts/statistics/models/private/logistic_regression_likelihood.m,
scripts/statistics/tests/anova.m, scripts/statistics/tests/bartlett_test.m,
scripts/statistics/tests/chisquare_test_homogeneity.m,
scripts/statistics/tests/chisquare_test_independence.m,
scripts/statistics/tests/cor_test.m,
scripts/statistics/tests/f_test_regression.m,
scripts/statistics/tests/hotelling_test.m,
scripts/statistics/tests/hotelling_test_2.m,
scripts/statistics/tests/kolmogorov_smirnov_test_2.m,
scripts/statistics/tests/kruskal_wallis_test.m,
scripts/statistics/tests/manova.m, scripts/statistics/tests/mcnemar_test.m,
scripts/statistics/tests/prop_test_2.m, scripts/statistics/tests/run_test.m,
scripts/statistics/tests/sign_test.m, scripts/statistics/tests/t_test.m,
scripts/statistics/tests/t_test_2.m,
scripts/statistics/tests/t_test_regression.m,
scripts/statistics/tests/u_test.m, scripts/statistics/tests/var_test.m,
scripts/statistics/tests/welch_test.m,
scripts/statistics/tests/wilcoxon_test.m, scripts/statistics/tests/z_test.m,
scripts/statistics/tests/z_test_2.m, scripts/strings/strcat.m,
scripts/strings/strjoin.m, scripts/strings/strsplit.m,
scripts/testfun/__have_feature__.m, scripts/testfun/__printf_assert__.m,
scripts/testfun/__prog_output_assert__.m, scripts/testfun/__run_test_suite__.m,
scripts/time/clock.m, scripts/time/datenum.m, scripts/ui/errordlg.m,
scripts/ui/private/message_dialog.m: End m-files with 1 blank line.
line wrap: on
line diff
--- a/scripts/@ftp/ascii.m +++ b/scripts/@ftp/ascii.m @@ -29,3 +29,4 @@ function ascii (f) __ftp_ascii__ (f.curlhandle); endfunction +
--- a/scripts/@ftp/binary.m +++ b/scripts/@ftp/binary.m @@ -28,3 +28,4 @@ function binary (f) __ftp_binary__ (f.curlhandle); endfunction +
--- a/scripts/@ftp/cd.m +++ b/scripts/@ftp/cd.m @@ -41,3 +41,4 @@ endif path = __ftp_pwd__ (f.curlhandle); endfunction +
--- a/scripts/@ftp/close.m +++ b/scripts/@ftp/close.m @@ -26,3 +26,4 @@ function dir (f) __ftp_close__ (f.curlhandle); endfunction +
--- a/scripts/@ftp/delete.m +++ b/scripts/@ftp/delete.m @@ -26,3 +26,4 @@ function delete (f, file) __ftp_delete__ (f.curlhandle, file); endfunction +
--- a/scripts/@ftp/dir.m +++ b/scripts/@ftp/dir.m @@ -31,3 +31,4 @@ lst = __ftp_dir__ (f.curlhandle); endif endfunction +
--- a/scripts/@ftp/display.m +++ b/scripts/@ftp/display.m @@ -22,4 +22,5 @@ printf (" user: %s\n", obj.username); printf (" dir: %s\n", __ftp_pwd__ (obj.curlhandle)); printf (" mode: %s\n", __ftp_mode__ (obj.curlhandle)); -endfunction \ No newline at end of file +endfunction +
--- a/scripts/@ftp/ftp.m +++ b/scripts/@ftp/ftp.m @@ -58,3 +58,4 @@ obj = class (p, "ftp"); endif endfunction +
--- a/scripts/@ftp/loadobj.m +++ b/scripts/@ftp/loadobj.m @@ -34,3 +34,4 @@ b = rmfield (b, "remotePwd"); endif endfunction +
--- a/scripts/@ftp/mget.m +++ b/scripts/@ftp/mget.m @@ -35,3 +35,4 @@ function mget (f, file) __ftp_mget__ (f.curlhandle, file); endfunction +
--- a/scripts/@ftp/mkdir.m +++ b/scripts/@ftp/mkdir.m @@ -26,3 +26,4 @@ function mkdir (f, path) __ftp_mkdir__ (f.curlhandle, path); endfunction +
--- a/scripts/@ftp/mput.m +++ b/scripts/@ftp/mput.m @@ -33,3 +33,4 @@ retval = __ftp_mput__ (f.curlhandle, file); endif endfunction +
--- a/scripts/@ftp/rename.m +++ b/scripts/@ftp/rename.m @@ -27,3 +27,4 @@ function rename (f, oldname, newname) __ftp_rename__ (f.curlhandle, oldname, newname); endfunction +
--- a/scripts/@ftp/rmdir.m +++ b/scripts/@ftp/rmdir.m @@ -26,3 +26,4 @@ function rmdir (f, path) __ftp_rmdir__ (f.curlhandle, path); endfunction +
--- a/scripts/@ftp/saveobj.m +++ b/scripts/@ftp/saveobj.m @@ -21,3 +21,4 @@ b = rmfield (b, "curlhandle"); b.dir = __ftp_pwd (a.curlhandle); endfunction +
--- a/scripts/audio/lin2mu.m +++ b/scripts/audio/lin2mu.m @@ -74,3 +74,4 @@ y = 64 * sig - 16 * e - fix (32 * f) + 335; endfunction +
--- a/scripts/audio/loadaudio.m +++ b/scripts/audio/loadaudio.m @@ -79,3 +79,4 @@ fclose (num); endfunction +
--- a/scripts/audio/record.m +++ b/scripts/audio/record.m @@ -63,3 +63,4 @@ X = Y - 127; endfunction +
--- a/scripts/audio/saveaudio.m +++ b/scripts/audio/saveaudio.m @@ -86,3 +86,4 @@ fclose (num); endfunction +
--- a/scripts/deprecated/__error_text__.m +++ b/scripts/deprecated/__error_text__.m @@ -34,3 +34,4 @@ [msg, msgid] = lasterr (varargin{:}); endfunction +
--- a/scripts/deprecated/error_text.m +++ b/scripts/deprecated/error_text.m @@ -34,3 +34,4 @@ [msg, msgid] = lasterr (varargin{:}); endfunction +
--- a/scripts/deprecated/isstr.m +++ b/scripts/deprecated/isstr.m @@ -38,3 +38,4 @@ retval = ischar (varargin{:}); endfunction +
--- a/scripts/deprecated/polyderiv.m +++ b/scripts/deprecated/polyderiv.m @@ -98,6 +98,7 @@ endfunction + %!assert(all (all (polyderiv ([1, 2, 3]) == [2, 2]))); %!assert(polyderiv (13) == 0);
--- a/scripts/deprecated/studentize.m +++ b/scripts/deprecated/studentize.m @@ -78,6 +78,7 @@ endfunction + %!assert(studentize ([1,2,3]), [-1,0,1]) %!assert(studentize (int8 ([1,2,3])), [-1,0,1]) #%!assert(studentize (ones (3,2,0,2)), zeros (3,2,0,2))
--- a/scripts/deprecated/sylvester_matrix.m +++ b/scripts/deprecated/sylvester_matrix.m @@ -57,6 +57,7 @@ endfunction + %!assert((sylvester_matrix (1) == [1, 1; 1, -1] %! && (sylvester_matrix (2) %! == [1, 1, 1, 1; 1, -1, 1, -1; 1, 1, -1, -1; 1, -1, -1, 1])));
--- a/scripts/general/bicubic.m +++ b/scripts/general/bicubic.m @@ -221,6 +221,7 @@ endfunction + %!demo %! clf; %! colormap ("default");
--- a/scripts/general/celldisp.m +++ b/scripts/general/celldisp.m @@ -89,3 +89,4 @@ %!error celldisp () %!error celldisp ({}, "name", 1) %!error <C must be a cell array> celldisp (1) +
--- a/scripts/general/colon.m +++ b/scripts/general/colon.m @@ -43,3 +43,4 @@ %!error colon (1) ## FIXME -- what does colon () mean since it doesn't set a return value? +
--- a/scripts/general/cplxpair.m +++ b/scripts/general/cplxpair.m @@ -163,4 +163,4 @@ ## tolerance test %!assert (cplxpair ([1i, -1i, 1+(1i*eps)],2*eps), [-1i, 1i, 1+(1i*eps)]) - +
--- a/scripts/general/del2.m +++ b/scripts/general/del2.m @@ -157,3 +157,4 @@ D = D ./ nd; endfunction +
--- a/scripts/general/display.m +++ b/scripts/general/display.m @@ -48,3 +48,4 @@ endif endfunction +
--- a/scripts/general/isdir.m +++ b/scripts/general/isdir.m @@ -32,6 +32,7 @@ endfunction + %!assert (isdir (pwd ())) %!assert (! isdir ("this is highly unlikely to be a directory name"))
--- a/scripts/general/isequaln.m +++ b/scripts/general/isequaln.m @@ -48,3 +48,4 @@ ## Input validation %!error isequaln () %!error isequaln (1) +
--- a/scripts/general/loadobj.m +++ b/scripts/general/loadobj.m @@ -39,3 +39,4 @@ function b = loadobj (a) error ('loadobj: not defined for class "%s"', class (a)); endfunction +
--- a/scripts/general/private/__isequal__.m +++ b/scripts/general/private/__isequal__.m @@ -182,3 +182,4 @@ endif endfunction +
--- a/scripts/general/private/__splinen__.m +++ b/scripts/general/private/__splinen__.m @@ -44,3 +44,4 @@ endfor yi(idx) = extrapval; endfunction +
--- a/scripts/general/profexplore.m +++ b/scripts/general/profexplore.m @@ -135,3 +135,4 @@ endwhile endfunction +
--- a/scripts/general/quadgk.m +++ b/scripts/general/quadgk.m @@ -457,3 +457,4 @@ %!error (quadgk (@sin)) %!error (quadgk (@sin, -pi)) %!error (quadgk (@sin, -pi, pi, "DummyArg")) +
--- a/scripts/general/randi.m +++ b/scripts/general/randi.m @@ -111,6 +111,7 @@ endfunction + %!test %! ri = randi (10, 1000, 1); %! assert (ri, fix (ri));
--- a/scripts/general/repmat.m +++ b/scripts/general/repmat.m @@ -125,6 +125,7 @@ endfunction + # Tests for ML compatibility %!shared x %! x = [1 2 3];
--- a/scripts/general/saveobj.m +++ b/scripts/general/saveobj.m @@ -42,3 +42,4 @@ function b = saveobj (a) error ('saveobj: not defined for class "%s"', class (a)); endfunction +
--- a/scripts/geometry/delaunay.m +++ b/scripts/geometry/delaunay.m @@ -166,3 +166,4 @@ %! assert (sortrows (sort (delaunay (x, y), 2)), [1,2,4;1,3,4;1,3,5;3,4,6]); %% FIXME: Need input validation tests +
--- a/scripts/help/__unimplemented__.m +++ b/scripts/help/__unimplemented__.m @@ -442,3 +442,4 @@ %! assert (str(1:51), "quad2d is not implemented. Consider using dblquad."); %! str = __unimplemented__ ("MException"); %! assert (str(1:58), "the 'MException' function is not yet implemented in Octave"); +
--- a/scripts/help/doc_cache_create.m +++ b/scripts/help/doc_cache_create.m @@ -157,3 +157,4 @@ %% No true tests desirable for this function. %% Test input validation %!error doc_cache_create (1) +
--- a/scripts/help/get_first_help_sentence.m +++ b/scripts/help/get_first_help_sentence.m @@ -157,7 +157,8 @@ endfunction -%!assert (get_first_help_sentence ('get_first_help_sentence'), "Return the first sentence of a function's help text.") +%!assert (get_first_help_sentence ('get_first_help_sentence'), ... +%! "Return the first sentence of a function's help text.") %% Test input validation %!error get_first_help_sentence ()
--- a/scripts/help/help.m +++ b/scripts/help/help.m @@ -209,4 +209,3 @@ %!assert (! isempty (strfind (help ("ls"), "List directory contents"))) %!error <invalid input> help (42) -
--- a/scripts/help/print_usage.m +++ b/scripts/help/print_usage.m @@ -139,3 +139,4 @@ ## Stop reporting function as missing tests. No good tests possible. %!assert (1) +
--- a/scripts/help/private/__additional_help_message__.m +++ b/scripts/help/private/__additional_help_message__.m @@ -37,3 +37,4 @@ endif endfunction +
--- a/scripts/help/private/__strip_html_tags__.m +++ b/scripts/help/private/__strip_html_tags__.m @@ -79,3 +79,4 @@ ## Actually remove the elements text = text (keep); endfunction +
--- a/scripts/help/type.m +++ b/scripts/help/type.m @@ -124,3 +124,4 @@ %!assert (type ("end"){1}, "end is a keyword") %!error (type ('NO_NAME')) +
--- a/scripts/image/imfinfo.m +++ b/scripts/image/imfinfo.m @@ -122,3 +122,4 @@ endif info = imageIO (@__imfinfo__, "info", varargin, varargin{:}); endfunction +
--- a/scripts/image/imformats.m +++ b/scripts/image/imformats.m @@ -282,6 +282,7 @@ end_try_catch endfunction + ## changing the function to read %!testif HAVE_MAGICK %! fmt = imformats ("jpg");
--- a/scripts/image/imread.m +++ b/scripts/image/imread.m @@ -102,6 +102,7 @@ [varargout{1:nargout}] = imageIO (@__imread__, "read", filename, varargin{:}); endfunction + %!testif HAVE_MAGICK %! vpng = [ ... %! 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, ...
--- a/scripts/image/imwrite.m +++ b/scripts/image/imwrite.m @@ -92,6 +92,7 @@ endfunction + %% Test input validation %!error imwrite () # Wrong # of args %!error imwrite (1) # Wrong # of args @@ -113,3 +114,4 @@ %! unlink (filename); %! end_unwind_protect %! assert (imw, imr) +
--- a/scripts/image/private/__imfinfo__.m +++ b/scripts/image/private/__imfinfo__.m @@ -69,3 +69,4 @@ end_unwind_protect endfunction +
--- a/scripts/image/private/__imread__.m +++ b/scripts/image/private/__imread__.m @@ -204,3 +204,4 @@ bool = true; endif endfunction +
--- a/scripts/image/private/__imwrite__.m +++ b/scripts/image/private/__imwrite__.m @@ -116,3 +116,4 @@ __magick_write__ (filename, ext, img, map, options); endfunction +
--- a/scripts/image/private/imageIO.m +++ b/scripts/image/private/imageIO.m @@ -66,3 +66,4 @@ [varargout{1:nargout}] = fmt.(fieldname) (varargin{:}); endif endfunction +
--- a/scripts/image/private/imwrite_filename.m +++ b/scripts/image/private/imwrite_filename.m @@ -66,3 +66,4 @@ options = varargin(options_idx:end); endfunction +
--- a/scripts/image/private/ind2x.m +++ b/scripts/image/private/ind2x.m @@ -57,3 +57,4 @@ endif endfunction +
--- a/scripts/io/strread.m +++ b/scripts/io/strread.m @@ -994,3 +994,4 @@ %% Illegal format specifiers %!test %!error <unknown format specifier> strread ("1.0", "%z") +
--- a/scripts/io/textread.m +++ b/scripts/io/textread.m @@ -219,6 +219,7 @@ endfunction + %!test %! f = tmpnam (); %! d = rand (5, 3); @@ -315,3 +316,4 @@ %!error <missing or illegal value for> textread (file_in_loadpath ("textread.m"), "", "headerlines") %!error <missing or illegal value for> textread (file_in_loadpath ("textread.m"), "", "headerlines", 'hh') %!error <character value required for> textread (file_in_loadpath ("textread.m"), "%s", "endofline", true) +
--- a/scripts/io/textscan.m +++ b/scripts/io/textscan.m @@ -660,3 +660,4 @@ %! fclose (fid); %! unlink (f); %! assert (msg1, lasterr); +
--- a/scripts/linear-algebra/krylov.m +++ b/scripts/linear-algebra/krylov.m @@ -244,3 +244,4 @@ b1 = a; endfunction +
--- a/scripts/linear-algebra/subspace.m +++ b/scripts/linear-algebra/subspace.m @@ -59,3 +59,4 @@ endif endfunction +
--- a/scripts/miscellaneous/bug_report.m +++ b/scripts/miscellaneous/bug_report.m @@ -47,3 +47,4 @@ ## Mark file as being tested. No real test needed for this function. %!assert (1) +
--- a/scripts/miscellaneous/bunzip2.m +++ b/scripts/miscellaneous/bunzip2.m @@ -40,3 +40,4 @@ endif endfunction +
--- a/scripts/miscellaneous/cast.m +++ b/scripts/miscellaneous/cast.m @@ -43,3 +43,4 @@ endif endfunction +
--- a/scripts/miscellaneous/copyfile.m +++ b/scripts/miscellaneous/copyfile.m @@ -129,3 +129,4 @@ endif endfunction +
--- a/scripts/miscellaneous/debug.m +++ b/scripts/miscellaneous/debug.m @@ -91,3 +91,4 @@ function debug () help ("debug"); endfunction +
--- a/scripts/miscellaneous/dir.m +++ b/scripts/miscellaneous/dir.m @@ -140,3 +140,4 @@ endif endfunction +
--- a/scripts/miscellaneous/dump_prefs.m +++ b/scripts/miscellaneous/dump_prefs.m @@ -96,3 +96,4 @@ endfor endfunction +
--- a/scripts/miscellaneous/error_ids.m +++ b/scripts/miscellaneous/error_ids.m @@ -54,3 +54,4 @@ ## Remove from test statistics. No real tests possible %!assert (1) +
--- a/scripts/miscellaneous/fileattrib.m +++ b/scripts/miscellaneous/fileattrib.m @@ -143,3 +143,4 @@ endif endfunction +
--- a/scripts/miscellaneous/gunzip.m +++ b/scripts/miscellaneous/gunzip.m @@ -41,3 +41,4 @@ endif endfunction +
--- a/scripts/miscellaneous/isdeployed.m +++ b/scripts/miscellaneous/isdeployed.m @@ -30,3 +30,4 @@ %!assert (isdeployed (), false) +
--- a/scripts/miscellaneous/ismac.m +++ b/scripts/miscellaneous/ismac.m @@ -36,3 +36,4 @@ %!assert (islogical (ismac ())) %!error ismac (1) +
--- a/scripts/miscellaneous/mex.m +++ b/scripts/miscellaneous/mex.m @@ -27,3 +27,4 @@ args = {"--mex", varargin{:}}; mkoctfile (args{:}); endfunction +
--- a/scripts/miscellaneous/mexext.m +++ b/scripts/miscellaneous/mexext.m @@ -28,3 +28,4 @@ %!assert (mexext (), "mex") +
--- a/scripts/miscellaneous/mkoctfile.m +++ b/scripts/miscellaneous/mkoctfile.m @@ -167,3 +167,4 @@ endif endfunction +
--- a/scripts/miscellaneous/movefile.m +++ b/scripts/miscellaneous/movefile.m @@ -126,3 +126,4 @@ print_usage (); endif endfunction +
--- a/scripts/miscellaneous/namelengthmax.m +++ b/scripts/miscellaneous/namelengthmax.m @@ -32,3 +32,4 @@ %!assert (namelengthmax (), 63) +
--- a/scripts/miscellaneous/news.m +++ b/scripts/miscellaneous/news.m @@ -40,3 +40,4 @@ %!error news (1, 2) %!error <news: PACKAGE must be a string> news (1) %!error <news: package .* is not installed> news ("__NOT_A_VALID_PKG_NAME__") +
--- a/scripts/miscellaneous/pack.m +++ b/scripts/miscellaneous/pack.m @@ -27,3 +27,4 @@ function pack () endfunction +
--- a/scripts/miscellaneous/perl.m +++ b/scripts/miscellaneous/perl.m @@ -48,3 +48,4 @@ endif endfunction +
--- a/scripts/miscellaneous/private/display_info_file.m +++ b/scripts/miscellaneous/private/display_info_file.m @@ -53,3 +53,4 @@ fclose (fid); endfunction +
--- a/scripts/miscellaneous/python.m +++ b/scripts/miscellaneous/python.m @@ -47,3 +47,4 @@ endif endfunction +
--- a/scripts/miscellaneous/rmappdata.m +++ b/scripts/miscellaneous/rmappdata.m @@ -45,6 +45,7 @@ endfunction + %!test %! setappdata (0, "hello", "world"); %! rmappdata (0, "hello");
--- a/scripts/miscellaneous/run.m +++ b/scripts/miscellaneous/run.m @@ -59,3 +59,4 @@ endif endif endfunction +
--- a/scripts/miscellaneous/tar.m +++ b/scripts/miscellaneous/tar.m @@ -64,3 +64,4 @@ endif endfunction +
--- a/scripts/miscellaneous/tempname.m +++ b/scripts/miscellaneous/tempname.m @@ -33,3 +33,4 @@ %% No tests needed for alias. %!assert (1) +
--- a/scripts/miscellaneous/untar.m +++ b/scripts/miscellaneous/untar.m @@ -41,3 +41,4 @@ endif endfunction +
--- a/scripts/miscellaneous/unzip.m +++ b/scripts/miscellaneous/unzip.m @@ -41,3 +41,4 @@ endif endfunction +
--- a/scripts/miscellaneous/what.m +++ b/scripts/miscellaneous/what.m @@ -108,3 +108,4 @@ endfor endif endfunction +
--- a/scripts/miscellaneous/zip.m +++ b/scripts/miscellaneous/zip.m @@ -66,3 +66,4 @@ endif endfunction +
--- a/scripts/optimization/fminunc.m +++ b/scripts/optimization/fminunc.m @@ -427,3 +427,4 @@ x = alpha * x + ((1-alpha) * min (snm, delta)) * s; endif endfunction +
--- a/scripts/optimization/fsolve.m +++ b/scripts/optimization/fsolve.m @@ -461,6 +461,7 @@ endif endfunction + %!function retval = __f (p) %! x = p(1); %! y = p(2);
--- a/scripts/optimization/fzero.m +++ b/scripts/optimization/fzero.m @@ -357,6 +357,7 @@ endif endfunction + %!shared opt0 %! opt0 = optimset ("tolx", 0); %!assert (fzero (@cos, [0, 3], opt0), pi/2, 10*eps)
--- a/scripts/optimization/glpk.m +++ b/scripts/optimization/glpk.m @@ -613,3 +613,4 @@ __glpk__ (c, A, b, lb, ub, ctype, vartype, sense, param); endfunction +
--- a/scripts/optimization/optimget.m +++ b/scripts/optimization/optimget.m @@ -56,6 +56,7 @@ endfunction + %!error optimget () %!shared opts @@ -65,3 +66,4 @@ %!assert (optimget (opts, "MaxITer"), 100); %!warning (optimget (opts, "Max")); %!warning (optimget (opts, "foobar")); +
--- a/scripts/optimization/optimset.m +++ b/scripts/optimization/optimset.m @@ -172,3 +172,4 @@ %!warning (optimset ("foobar", 13)); %!error (optimset ("%NOT_A_REAL_FUNCTION_NAME%")) +
--- a/scripts/optimization/qp.m +++ b/scripts/optimization/qp.m @@ -405,3 +405,4 @@ endif endfunction +
--- a/scripts/optimization/sqp.m +++ b/scripts/optimization/sqp.m @@ -767,3 +767,4 @@ %!error sqp (1, cell (3,1), cell (2,1), cell (2,1),[],[],1.5) %!error sqp (1, cell (3,1), cell (2,1), cell (2,1),[],[],[], ones (2,2)) %!error sqp (1, cell (3,1), cell (2,1), cell (2,1),[],[],[],-1) +
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -556,3 +556,4 @@ error ("you must specify a valid action for 'pkg'. See 'help pkg' for details"); endswitch endfunction +
--- a/scripts/pkg/private/build.m +++ b/scripts/pkg/private/build.m @@ -61,3 +61,4 @@ endif end_unwind_protect endfunction +
--- a/scripts/pkg/private/describe.m +++ b/scripts/pkg/private/describe.m @@ -84,3 +84,4 @@ endif endfunction +
--- a/scripts/pkg/private/dirempty.m +++ b/scripts/pkg/private/dirempty.m @@ -48,3 +48,4 @@ emp = true; endif endfunction +
--- a/scripts/pkg/private/get_forge_download.m +++ b/scripts/pkg/private/get_forge_download.m @@ -26,3 +26,4 @@ [ver, url] = get_forge_pkg (name); local_file = [name, "-", ver, ".tar.gz"]; endfunction +
--- a/scripts/pkg/private/get_forge_pkg.m +++ b/scripts/pkg/private/get_forge_pkg.m @@ -78,3 +78,4 @@ endif endfunction +
--- a/scripts/pkg/private/get_unsatisfied_deps.m +++ b/scripts/pkg/private/get_unsatisfied_deps.m @@ -52,3 +52,4 @@ endif endfor endfunction +
--- a/scripts/pkg/private/install.m +++ b/scripts/pkg/private/install.m @@ -341,3 +341,4 @@ endif endfunction +
--- a/scripts/pkg/private/is_architecture_dependent.m +++ b/scripts/pkg/private/is_architecture_dependent.m @@ -44,3 +44,4 @@ endif endfor endfunction +
--- a/scripts/pkg/private/list_forge_packages.m +++ b/scripts/pkg/private/list_forge_packages.m @@ -42,3 +42,4 @@ endfor endif endfunction +
--- a/scripts/pkg/private/rebuild.m +++ b/scripts/pkg/private/rebuild.m @@ -97,3 +97,4 @@ endif endif endfunction +
--- a/scripts/pkg/private/shell.m +++ b/scripts/pkg/private/shell.m @@ -54,3 +54,4 @@ [status, output] = system (cmd); endif endfunction +
--- a/scripts/pkg/private/uninstall.m +++ b/scripts/pkg/private/uninstall.m @@ -144,3 +144,4 @@ endif endfunction +
--- a/scripts/plot/box.m +++ b/scripts/plot/box.m @@ -68,3 +68,4 @@ set (hax, "box", box_state); endfunction +
--- a/scripts/plot/diffuse.m +++ b/scripts/plot/diffuse.m @@ -56,3 +56,4 @@ retval(retval < 0) = 0; endfunction +
--- a/scripts/plot/ezpolar.m +++ b/scripts/plot/ezpolar.m @@ -69,3 +69,4 @@ %!demo %! clf; %! ezpolar (@(t) sin (5/4 * t), [0, 8*pi]); +
--- a/scripts/plot/findfigs.m +++ b/scripts/plot/findfigs.m @@ -79,3 +79,4 @@ endif endfor endfunction +
--- a/scripts/plot/gco.m +++ b/scripts/plot/gco.m @@ -44,3 +44,4 @@ h = get (get (0, "currentfigure"), "currentobject"); endfunction +
--- a/scripts/plot/guihandles.m +++ b/scripts/plot/guihandles.m @@ -70,3 +70,4 @@ endfor endfunction +
--- a/scripts/plot/hdl2struct.m +++ b/scripts/plot/hdl2struct.m @@ -169,3 +169,4 @@ ## FIXME: need validation tests +
--- a/scripts/plot/linkprop.m +++ b/scripts/plot/linkprop.m @@ -99,3 +99,4 @@ warning ("linkprop: can not remove linked properties"); endif endfunction +
--- a/scripts/plot/private/__add_datasource__.m +++ b/scripts/plot/private/__add_datasource__.m @@ -49,3 +49,4 @@ endif endwhile endfunction +
--- a/scripts/plot/private/__axis_label__.m +++ b/scripts/plot/private/__axis_label__.m @@ -40,3 +40,4 @@ endif endfunction +
--- a/scripts/plot/private/__clabel__.m +++ b/scripts/plot/private/__clabel__.m @@ -114,3 +114,4 @@ i1 += clen+1; endwhile endfunction +
--- a/scripts/plot/private/__color_str_rgb__.m +++ b/scripts/plot/private/__color_str_rgb__.m @@ -48,3 +48,4 @@ error ("__color_str_rgb__: expecting a string argument"); endif endfunction +
--- a/scripts/plot/private/__contour__.m +++ b/scripts/plot/private/__contour__.m @@ -573,3 +573,4 @@ endif endif endfunction +
--- a/scripts/plot/private/__default_plot_options__.m +++ b/scripts/plot/private/__default_plot_options__.m @@ -32,3 +32,4 @@ options.errorstyle = []; endfunction +
--- a/scripts/plot/private/__errcomm__.m +++ b/scripts/plot/private/__errcomm__.m @@ -76,3 +76,4 @@ drawnow (); endfunction +
--- a/scripts/plot/private/__file_filter__.m +++ b/scripts/plot/private/__file_filter__.m @@ -91,3 +91,4 @@ endif endfunction +
--- a/scripts/plot/private/__fltk_file_filter__.m +++ b/scripts/plot/private/__fltk_file_filter__.m @@ -62,3 +62,4 @@ retval = fltk_str; endfunction +
--- a/scripts/plot/private/__getlegenddata__.m +++ b/scripts/plot/private/__getlegenddata__.m @@ -56,3 +56,4 @@ endfor endfunction +
--- a/scripts/plot/private/__gnuplot_open_stream__.m +++ b/scripts/plot/private/__gnuplot_open_stream__.m @@ -43,3 +43,4 @@ set (h, "__plot_stream__", plot_stream); endif endfunction +
--- a/scripts/plot/private/__gnuplot_print__.m +++ b/scripts/plot/private/__gnuplot_print__.m @@ -313,3 +313,4 @@ fontsize = {fontsize}; endswitch endfunction +
--- a/scripts/plot/private/__go_draw_axes__.m +++ b/scripts/plot/private/__go_draw_axes__.m @@ -2659,3 +2659,4 @@ endif endif endfunction +
--- a/scripts/plot/private/__interp_cube__.m +++ b/scripts/plot/private/__interp_cube__.m @@ -182,3 +182,4 @@ frac(:, 3) = (v(:, 3) - z(idx(:, 3))) ... ./ (z(idx(:, 3)+1) - z(idx(:, 3))); endfunction +
--- a/scripts/plot/private/__is_function__.m +++ b/scripts/plot/private/__is_function__.m @@ -29,3 +29,4 @@ result = (existval == 2 || existval == 3 || existval == 5 || existval == 6); endfunction +
--- a/scripts/plot/private/__line__.m +++ b/scripts/plot/private/__line__.m @@ -126,3 +126,4 @@ endif endfunction +
--- a/scripts/plot/private/__marching_cube__.m +++ b/scripts/plot/private/__marching_cube__.m @@ -528,3 +528,4 @@ 0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1; -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ] + 1; endfunction +
--- a/scripts/plot/private/__next_line_style__.m +++ b/scripts/plot/private/__next_line_style__.m @@ -55,3 +55,4 @@ endif endfunction +
--- a/scripts/plot/private/__patch__.m +++ b/scripts/plot/private/__patch__.m @@ -366,3 +366,4 @@ recursive = false; endif endfunction +
--- a/scripts/plot/private/__pie__.m +++ b/scripts/plot/private/__pie__.m @@ -198,3 +198,4 @@ endfor endif endfunction +
--- a/scripts/plot/private/__pltopt__.m +++ b/scripts/plot/private/__pltopt__.m @@ -231,3 +231,4 @@ endif endfunction +
--- a/scripts/plot/private/__quiver__.m +++ b/scripts/plot/private/__quiver__.m @@ -442,3 +442,4 @@ "markerfacecolor", get (h, "markerfacecolor"), "markersize", get (h, "markersize")); endfunction +
--- a/scripts/plot/private/__scatter__.m +++ b/scripts/plot/private/__scatter__.m @@ -376,3 +376,4 @@ endif endif endfunction +
--- a/scripts/plot/private/__stem__.m +++ b/scripts/plot/private/__stem__.m @@ -565,3 +565,4 @@ set (kids(2), "xdata", xt, "ydata", yt, "zdata", zt); set (kids(1), "xdata", x, "ydata", y, "zdata", z); endfunction +
--- a/scripts/plot/private/__uigetdir_fltk__.m +++ b/scripts/plot/private/__uigetdir_fltk__.m @@ -32,3 +32,4 @@ dirname = __fltk_uigetfile__ ("", dialog_title, start_path, [240, 120], "dir"); endfunction +
--- a/scripts/plot/private/__uigetfile_fltk__.m +++ b/scripts/plot/private/__uigetfile_fltk__.m @@ -36,3 +36,4 @@ [retval, retpath, retindex] = __fltk_uigetfile__ (filters, title, defval, position, multiselect); endfunction +
--- a/scripts/plot/private/__uiobject_split_args__.m +++ b/scripts/plot/private/__uiobject_split_args__.m @@ -64,3 +64,4 @@ endif endfunction +
--- a/scripts/plot/private/__uiputfile_fltk__.m +++ b/scripts/plot/private/__uiputfile_fltk__.m @@ -36,3 +36,4 @@ [retval, retpath, retindex] = __fltk_uigetfile__ (filters, title, defval, position, tag); endfunction +
--- a/scripts/plot/refresh.m +++ b/scripts/plot/refresh.m @@ -42,3 +42,4 @@ drawnow (); endfunction +
--- a/scripts/plot/saveas.m +++ b/scripts/plot/saveas.m @@ -105,3 +105,4 @@ print (fig, filename, prt_opt); endfunction +
--- a/scripts/plot/specular.m +++ b/scripts/plot/specular.m @@ -91,3 +91,4 @@ retval = retval .^ se; endfunction +
--- a/scripts/plot/struct2hdl.m +++ b/scripts/plot/struct2hdl.m @@ -637,3 +637,4 @@ ## FIXME: Need validation tests +
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -369,6 +369,7 @@ endif endfunction + %!demo %! clf; %! r = 3;
--- a/scripts/plot/uicontextmenu.m +++ b/scripts/plot/uicontextmenu.m @@ -28,3 +28,4 @@ handle = __go_uicontextmenu__ (h, args{:}); endfunction +
--- a/scripts/plot/uipanel.m +++ b/scripts/plot/uipanel.m @@ -29,3 +29,4 @@ handle = __go_uipanel__ (h, args{:}); endfunction +
--- a/scripts/plot/uipushtool.m +++ b/scripts/plot/uipushtool.m @@ -37,3 +37,4 @@ handle = __go_uipushtool__ (h, args{:}); endfunction +
--- a/scripts/plot/uiresume.m +++ b/scripts/plot/uiresume.m @@ -43,3 +43,4 @@ end_try_catch endfunction +
--- a/scripts/plot/uitoggletool.m +++ b/scripts/plot/uitoggletool.m @@ -37,3 +37,4 @@ handle = __go_uitoggletool__ (h, args{:}); endfunction +
--- a/scripts/plot/uitoolbar.m +++ b/scripts/plot/uitoolbar.m @@ -29,3 +29,4 @@ handle = __go_uitoolbar__ (h, args{:}); endfunction +
--- a/scripts/plot/waitforbuttonpress.m +++ b/scripts/plot/waitforbuttonpress.m @@ -47,3 +47,4 @@ endif endfunction +
--- a/scripts/polynomial/pchip.m +++ b/scripts/polynomial/pchip.m @@ -125,6 +125,7 @@ endfunction + %!demo %! x = 0:8; %! y = [1, 1, 1, 1, 0.5, 0, 0, 0, 0]; @@ -170,3 +171,4 @@ %!error (pchip (1,2)); %!error (pchip (1,2,3)); +
--- a/scripts/polynomial/polyeig.m +++ b/scripts/polynomial/polyeig.m @@ -83,9 +83,11 @@ endfunction + %!test %! C0 = [8, 0; 0, 4]; C1 = [1, 0; 0, 1]; %! [v,z] = polyeig (C0, C1); %! assert (isequal (z(1), -8), true); %! d = C0*v + C1*v*z; %! assert (isequal (norm(d), 0.0), true); +
--- a/scripts/polynomial/ppval.m +++ b/scripts/polynomial/ppval.m @@ -127,3 +127,4 @@ %! ret(:,:,1) = ppval (pp, breaks'); %! ret(:,:,2) = ppval (pp, breaks'); %! assert (ppval (pp, [breaks',breaks']), ret) +
--- a/scripts/prefs/addpref.m +++ b/scripts/prefs/addpref.m @@ -69,6 +69,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/prefs/getpref.m +++ b/scripts/prefs/getpref.m @@ -90,6 +90,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/prefs/ispref.m +++ b/scripts/prefs/ispref.m @@ -55,6 +55,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/prefs/private/loadprefs.m +++ b/scripts/prefs/private/loadprefs.m @@ -38,6 +38,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/prefs/private/prefsfile.m +++ b/scripts/prefs/private/prefsfile.m @@ -29,6 +29,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/prefs/private/saveprefs.m +++ b/scripts/prefs/private/saveprefs.m @@ -31,6 +31,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/prefs/setpref.m +++ b/scripts/prefs/setpref.m @@ -62,6 +62,8 @@ endfunction + %% Testing these functions will require some care to avoid wiping out %% existing (or creating unwanted) preferences for the user running the %% tests. +
--- a/scripts/set/private/validargs.m +++ b/scripts/set/private/validargs.m @@ -55,3 +55,4 @@ endif endfunction +
--- a/scripts/set/unique.m +++ b/scripts/set/unique.m @@ -221,3 +221,4 @@ %!error unique({"a", "b", "c"}, "UnknownOption1", "UnknownOption2") %!error unique({"a", "b", "c"}, "rows", "UnknownOption2") %!error unique({"a", "b", "c"}, "UnknownOption1", "last") +
--- a/scripts/signal/arch_fit.m +++ b/scripts/signal/arch_fit.m @@ -116,3 +116,4 @@ endfor endfunction +
--- a/scripts/signal/arch_rnd.m +++ b/scripts/signal/arch_rnd.m @@ -100,3 +100,4 @@ y = y(1:t); endfunction +
--- a/scripts/signal/arch_test.m +++ b/scripts/signal/arch_test.m @@ -94,3 +94,4 @@ pval = 1 - chi2cdf (lm, p); endfunction +
--- a/scripts/signal/arma_rnd.m +++ b/scripts/signal/arma_rnd.m @@ -79,3 +79,4 @@ x = x(n + 1 : t + n); endfunction +
--- a/scripts/signal/durbinlevinson.m +++ b/scripts/signal/durbinlevinson.m @@ -91,3 +91,4 @@ endif endfunction +
--- a/scripts/signal/fractdiff.m +++ b/scripts/signal/fractdiff.m @@ -67,3 +67,4 @@ endif endfunction +
--- a/scripts/signal/freqz.m +++ b/scripts/signal/freqz.m @@ -203,3 +203,4 @@ %! assert (h,h2.',20*eps); %! [h3,f3] = freqz (b,a,32,"whole",320); %! assert (f3,[0:31]'*10,10*eps); +
--- a/scripts/signal/freqz_plot.m +++ b/scripts/signal/freqz_plot.m @@ -64,3 +64,4 @@ axis ([w(1), w(n)], "autoy", "label"); endfunction +
--- a/scripts/signal/hurst.m +++ b/scripts/signal/hurst.m @@ -46,3 +46,4 @@ H = log (RS) / log (xr); endfunction +
--- a/scripts/signal/periodogram.m +++ b/scripts/signal/periodogram.m @@ -189,3 +189,4 @@ endif endfunction +
--- a/scripts/signal/private/rectangle_lw.m +++ b/scripts/signal/private/rectangle_lw.m @@ -33,3 +33,4 @@ retval(1:t, 1) = ones (t, 1); endfunction +
--- a/scripts/signal/private/rectangle_sw.m +++ b/scripts/signal/private/rectangle_sw.m @@ -37,32 +37,3 @@ endfunction - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- a/scripts/signal/private/triangle_sw.m +++ b/scripts/signal/private/triangle_sw.m @@ -37,32 +37,3 @@ endfunction - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- a/scripts/signal/spectral_adf.m +++ b/scripts/signal/spectral_adf.m @@ -68,8 +68,10 @@ endfunction + %% Test input validation %!error spectral_adf (); %!error spectral_adf (1, 2, 3, 4); %!error spectral_adf (1, 2); %!error spectral_adf (1, "invalid"); +
--- a/scripts/signal/spectral_xdf.m +++ b/scripts/signal/spectral_xdf.m @@ -69,8 +69,10 @@ endfunction + %% Test input validation %!error spectral_xdf (); %!error spectral_xdf (1, 2, 3, 4); %!error spectral_xdf (1, 2); %!error spectral_xdf (1, "invalid"); +
--- a/scripts/signal/synthesis.m +++ b/scripts/signal/synthesis.m @@ -70,3 +70,4 @@ x = reshape (z, inc * nc, 1); endfunction +
--- a/scripts/signal/yulewalker.m +++ b/scripts/signal/yulewalker.m @@ -55,6 +55,3 @@ endfunction - - -
--- a/scripts/sparse/colperm.m +++ b/scripts/sparse/colperm.m @@ -35,3 +35,4 @@ idx = find (diff ([j; Inf]) != 0); [dummy, p] = sort (idx - [0; idx(1:(end-1))]); endfunction +
--- a/scripts/sparse/eigs.m +++ b/scripts/sparse/eigs.m @@ -361,6 +361,7 @@ endfunction + #### SPARSE MATRIX VERSIONS #### ## Real positive definite tests, n must be even @@ -1106,3 +1107,4 @@ %!assert (eigs (diag (1:5), 5, "sa"), [1;2;3;4;5]); %!assert (eigs (diag (1:5), 5, "la"), [5;4;3;2;1]); %!assert (eigs (diag (1:5), 3, "be"), [1;4;5]); +
--- a/scripts/sparse/etreeplot.m +++ b/scripts/sparse/etreeplot.m @@ -34,3 +34,4 @@ treeplot (etree (A+A'), varargin{:}); endfunction +
--- a/scripts/sparse/gmres.m +++ b/scripts/sparse/gmres.m @@ -234,3 +234,4 @@ %!error <A must be a function or matrix> gmres ({1},2) %!error <M1 must be a function or matrix> gmres (1,2,3,4,5,{6}) %!error <M2 must be a function or matrix> gmres (1,2,3,4,5,6,{7}) +
--- a/scripts/sparse/private/__sprand_impl__.m +++ b/scripts/sparse/private/__sprand_impl__.m @@ -78,3 +78,4 @@ S = sparse (i, j, randfun (k, 1), m, n); endfunction +
--- a/scripts/sparse/spdiags.m +++ b/scripts/sparse/spdiags.m @@ -91,3 +91,4 @@ %!assert (spdiags (zeros (1,0),1,1,1), sparse (0)) %!assert (spdiags (zeros (0,1),1,1,1), sparse (0)) %!assert (spdiags ([0.5 -1 0.5], 0:2, 1, 1), sparse(0.5)) +
--- a/scripts/sparse/sprandn.m +++ b/scripts/sparse/sprandn.m @@ -75,3 +75,4 @@ %% Test very large, very low density matrix doesn't fail %!test %! s = sprandn(1e6,1e6,1e-7); +
--- a/scripts/specfun/betaln.m +++ b/scripts/specfun/betaln.m @@ -55,3 +55,4 @@ %% Test input validation %!error (betaln (1)) %!error (betaln (1,2,3)) +
--- a/scripts/specfun/expint.m +++ b/scripts/specfun/expint.m @@ -201,3 +201,4 @@ %% Test input validation %!error expint () %!error expint (1,2) +
--- a/scripts/special-matrix/gallery.m +++ b/scripts/special-matrix/gallery.m @@ -2852,3 +2852,4 @@ A = A'; endif endfunction +
--- a/scripts/startup/__finish__.m +++ b/scripts/startup/__finish__.m @@ -40,3 +40,4 @@ ## No test needed for internal helper function. %!assert (1) +
--- a/scripts/statistics/base/qqplot.m +++ b/scripts/statistics/base/qqplot.m @@ -97,3 +97,4 @@ endif endfunction +
--- a/scripts/statistics/distributions/tcdf.m +++ b/scripts/statistics/distributions/tcdf.m @@ -157,3 +157,4 @@ ## x = power(mpf(10), -mpf(i)) ## print "%%!assert (tcdf (10^(-%d), 2.5), %s, -eps)" \ ## % (i, nstr(F(x, nu), 17)) +
--- a/scripts/statistics/distributions/wienrnd.m +++ b/scripts/statistics/distributions/wienrnd.m @@ -52,3 +52,4 @@ retval = [((1: n*t)' / n), retval]; endfunction +
--- a/scripts/statistics/models/logistic_regression.m +++ b/scripts/statistics/models/logistic_regression.m @@ -190,3 +190,4 @@ endif endfunction +
--- a/scripts/statistics/models/private/logistic_regression_derivatives.m +++ b/scripts/statistics/models/private/logistic_regression_derivatives.m @@ -41,3 +41,4 @@ - dlogp' * dlogp; endfunction +
--- a/scripts/statistics/models/private/logistic_regression_likelihood.m +++ b/scripts/statistics/models/private/logistic_regression_likelihood.m @@ -37,3 +37,4 @@ dev = -2 * sum (log (p)); endfunction +
--- a/scripts/statistics/tests/anova.m +++ b/scripts/statistics/tests/anova.m @@ -108,3 +108,4 @@ endif endfunction +
--- a/scripts/statistics/tests/bartlett_test.m +++ b/scripts/statistics/tests/bartlett_test.m @@ -65,3 +65,4 @@ endif endfunction +
--- a/scripts/statistics/tests/chisquare_test_homogeneity.m +++ b/scripts/statistics/tests/chisquare_test_homogeneity.m @@ -66,3 +66,4 @@ endif endfunction +
--- a/scripts/statistics/tests/chisquare_test_independence.m +++ b/scripts/statistics/tests/chisquare_test_independence.m @@ -51,3 +51,4 @@ endif endfunction +
--- a/scripts/statistics/tests/cor_test.m +++ b/scripts/statistics/tests/cor_test.m @@ -133,3 +133,4 @@ endif endfunction +
--- a/scripts/statistics/tests/f_test_regression.m +++ b/scripts/statistics/tests/f_test_regression.m @@ -75,3 +75,4 @@ endif endfunction +
--- a/scripts/statistics/tests/hotelling_test.m +++ b/scripts/statistics/tests/hotelling_test.m @@ -70,3 +70,4 @@ endif endfunction +
--- a/scripts/statistics/tests/hotelling_test_2.m +++ b/scripts/statistics/tests/hotelling_test_2.m @@ -84,3 +84,4 @@ endif endfunction +
--- a/scripts/statistics/tests/kolmogorov_smirnov_test_2.m +++ b/scripts/statistics/tests/kolmogorov_smirnov_test_2.m @@ -102,3 +102,4 @@ endif endfunction +
--- a/scripts/statistics/tests/kruskal_wallis_test.m +++ b/scripts/statistics/tests/kruskal_wallis_test.m @@ -98,3 +98,4 @@ ## Test with ties %!assert (abs (kruskal_wallis_test ([86 86], [74]) - 0.157299207050285) < 0.0000000000001) +
--- a/scripts/statistics/tests/manova.m +++ b/scripts/statistics/tests/manova.m @@ -159,3 +159,4 @@ printf ("\n"); endfunction +
--- a/scripts/statistics/tests/mcnemar_test.m +++ b/scripts/statistics/tests/mcnemar_test.m @@ -63,5 +63,3 @@ endfunction - -
--- a/scripts/statistics/tests/prop_test_2.m +++ b/scripts/statistics/tests/prop_test_2.m @@ -78,3 +78,4 @@ endif endfunction +
--- a/scripts/statistics/tests/run_test.m +++ b/scripts/statistics/tests/run_test.m @@ -56,3 +56,4 @@ endif endfunction +
--- a/scripts/statistics/tests/sign_test.m +++ b/scripts/statistics/tests/sign_test.m @@ -81,3 +81,4 @@ endif endfunction +
--- a/scripts/statistics/tests/t_test.m +++ b/scripts/statistics/tests/t_test.m @@ -81,3 +81,4 @@ endif endfunction +
--- a/scripts/statistics/tests/t_test_2.m +++ b/scripts/statistics/tests/t_test_2.m @@ -82,3 +82,4 @@ endif endfunction +
--- a/scripts/statistics/tests/t_test_regression.m +++ b/scripts/statistics/tests/t_test_regression.m @@ -97,3 +97,4 @@ endif endfunction +
--- a/scripts/statistics/tests/u_test.m +++ b/scripts/statistics/tests/u_test.m @@ -83,3 +83,4 @@ endif endfunction +
--- a/scripts/statistics/tests/var_test.m +++ b/scripts/statistics/tests/var_test.m @@ -78,3 +78,4 @@ endif endfunction +
--- a/scripts/statistics/tests/welch_test.m +++ b/scripts/statistics/tests/welch_test.m @@ -83,3 +83,4 @@ endif endfunction +
--- a/scripts/statistics/tests/wilcoxon_test.m +++ b/scripts/statistics/tests/wilcoxon_test.m @@ -89,3 +89,4 @@ endif endfunction +
--- a/scripts/statistics/tests/z_test.m +++ b/scripts/statistics/tests/z_test.m @@ -85,3 +85,4 @@ endif endfunction +
--- a/scripts/statistics/tests/z_test_2.m +++ b/scripts/statistics/tests/z_test_2.m @@ -86,3 +86,4 @@ endif endfunction +
--- a/scripts/strings/strcat.m +++ b/scripts/strings/strcat.m @@ -118,6 +118,7 @@ endfunction + ## test the dimensionality ## 1d %!assert (strcat ("ab ", "ab "), "abab")
--- a/scripts/strings/strjoin.m +++ b/scripts/strings/strjoin.m @@ -85,6 +85,7 @@ endfunction + %!assert (strjoin ({"hello"}, "-"), "hello") %!assert (strjoin ({"hello", "world"}), "hello world") %!assert (strjoin ({"Octave", "Scilab", "Lush", "Yorick"}, "*"), @@ -94,3 +95,4 @@ %!assert (strjoin ({'Octave','Scilab'},'\n'), "Octave\nScilab") %!assert (strjoin ({'Octave','Scilab'},{'\n'}), "Octave\\nScilab") %!assert (strjoin ({},'foo'), "") +
--- a/scripts/strings/strsplit.m +++ b/scripts/strings/strsplit.m @@ -209,6 +209,7 @@ endif endfunction + %!shared str %! str = "The rain in Spain stays mainly in the plain."; % Split on all whitespace.
--- a/scripts/testfun/__have_feature__.m +++ b/scripts/testfun/__have_feature__.m @@ -32,3 +32,4 @@ retval = false; endif endfunction +
--- a/scripts/testfun/__printf_assert__.m +++ b/scripts/testfun/__printf_assert__.m @@ -25,3 +25,4 @@ global _assert_printf; _assert_printf = cat (2, _assert_printf, sprintf (varargin{:})); endfunction +
--- a/scripts/testfun/__prog_output_assert__.m +++ b/scripts/testfun/__prog_output_assert__.m @@ -32,3 +32,4 @@ endif _assert_printf = ""; endfunction +
--- a/scripts/testfun/__run_test_suite__.m +++ b/scripts/testfun/__run_test_suite__.m @@ -267,3 +267,4 @@ n_tot = n_with + n_without; printf ("\n%d (of %d) %s files have no tests.\n", n_without, n_tot, typ); endfunction +
--- a/scripts/time/clock.m +++ b/scripts/time/clock.m @@ -54,6 +54,7 @@ endfunction + %!test %! t1 = clock; %! t2 = str2num (strftime ("[%Y, %m, %d, %H, %M, %S]", localtime (time ())));
--- a/scripts/time/datenum.m +++ b/scripts/time/datenum.m @@ -203,3 +203,4 @@ %!error <expected date vector containing> datenum ([1, 2]) %!error <expected date vector containing> datenum ([1,2,3,4,5,6,7]) %!error <all inputs must be of class double> datenum (int32 (2000), int32 (1), int32 (1)) +