comparison test/io.tst @ 19629:be7ac98fab43 gui-release

strip trailing whitespace from most source files * NEWS, etc/NEWS.3, libgui/graphics/Backend.h, libgui/graphics/ButtonControl.h, libgui/graphics/EditControl.cc, libgui/graphics/Object.h, libgui/graphics/QtHandlesUtils.cc, libgui/graphics/ToolBarButton.h, libgui/graphics/__init_qt__.cc, libgui/graphics/gl-select.cc, libgui/qterminal/libqterminal/unix/TerminalView.cpp, libgui/qterminal/libqterminal/unix/TerminalView.h, libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp, libgui/src/m-editor/file-editor-tab.cc, libgui/src/m-editor/file-editor.cc, libgui/src/m-editor/file-editor.h, libgui/src/m-editor/octave-qscintilla.cc, libgui/src/settings-dialog.cc, libgui/src/shortcut-manager.cc, libgui/src/workspace-view.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/input.cc, libinterp/parse-tree/pt-unop.cc, liboctave/array/dSparse.h, scripts/pkg/pkg.m, scripts/polynomial/polyeig.m, test/io.tst: Strip trailing whitespace.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 09:43:29 -0500
parents 2a790328fc50
children 0e1f5a750d00
comparison
equal deleted inserted replaced
19628:fe689210525c 19629:be7ac98fab43
72 %! ## complex sparse 72 %! ## complex sparse
73 %! persistent a20 = sprandn (100,100,0.01) + 1i * sprandn (100,100,0.01); 73 %! persistent a20 = sprandn (100,100,0.01) + 1i * sprandn (100,100,0.01);
74 %! 74 %!
75 %! ret = 0; 75 %! ret = 0;
76 %! 76 %!
77 %! files = cellfun (@fullfile, {P_tmpdir}, 77 %! files = cellfun (@fullfile, {P_tmpdir},
78 %! {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"}, 78 %! {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"},
79 %! "UniformOutput", false); 79 %! "UniformOutput", false);
80 %! opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}; 80 %! opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
81 %! tols = {2*eps, 0, 0, 0}; 81 %! tols = {2*eps, 0, 0, 0};
82 %! 82 %!
83 %! vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20"; 83 %! vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20";
196 %! STR.scalar_fld = 1; 196 %! STR.scalar_fld = 1;
197 %! STR.matrix_fld = [1.1,2;3,4]; 197 %! STR.matrix_fld = [1.1,2;3,4];
198 %! STR.string_fld = "Octave"; 198 %! STR.string_fld = "Octave";
199 %! STR.struct_fld.x = 0; 199 %! STR.struct_fld.x = 0;
200 %! STR.struct_fld.y = 1; 200 %! STR.struct_fld.y = 1;
201 %! 201 %!
202 %! struct_dat = fullfile (P_tmpdir, "struct.dat"); 202 %! struct_dat = fullfile (P_tmpdir, "struct.dat");
203 %! save (struct_dat, "-struct", "STR"); 203 %! save (struct_dat, "-struct", "STR");
204 %! STR = load (struct_dat); 204 %! STR = load (struct_dat);
205 %! 205 %!
206 %! assert (STR.scalar_fld == 1 && ... 206 %! assert (STR.scalar_fld == 1 && ...
207 %! STR.matrix_fld == [1.1,2;3,4] && ... 207 %! STR.matrix_fld == [1.1,2;3,4] && ...
208 %! STR.string_fld == "Octave" && ... 208 %! STR.string_fld == "Octave" && ...
209 %! STR.struct_fld.x == 0 && ... 209 %! STR.struct_fld.x == 0 && ...
210 %! STR.struct_fld.y == 1 ); 210 %! STR.struct_fld.y == 1 );
211 %! 211 %!
212 %! 212 %!
213 %! save ("-binary", struct_dat, 213 %! save ("-binary", struct_dat,
214 %! "-struct", "STR", "matrix_fld", "str*_fld"); 214 %! "-struct", "STR", "matrix_fld", "str*_fld");
215 %! STR = load (struct_dat); 215 %! STR = load (struct_dat);
216 %! 216 %!
217 %! assert (!isfield (STR,"scalar_fld") && ... 217 %! assert (!isfield (STR,"scalar_fld") && ...
218 %! STR.matrix_fld == [1.1,2;3,4] && ... 218 %! STR.matrix_fld == [1.1,2;3,4] && ...