Mercurial > octave-nkf
comparison test/test_struct.m @ 13915:5fa482628bf6
Remove unnecessary regular expression '.*' from ends of %!error blocks
* betainc.cc, chol.cc, dassl.cc, det.cc, eig.cc, find.cc, gcd.cc, hess.cc,
inv.cc, lsode.cc, lu.cc, max.cc, qr.cc, quad.cc, schur.cc, sub2ind.cc, svd.cc,
syl.cc, time.cc, data.cc, mappers.cc, strfns.cc, test_io.m, test_struct.m,
test_system.m: Remove unnecessary regular expression '.*' from ends of
%!error blocks
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 22 Nov 2011 18:26:28 -0800 |
parents | fd0a3ac60b0e |
children | c3309e1ec50d |
comparison
equal
deleted
inserted
replaced
13914:4b1ce071f504 | 13915:5fa482628bf6 |
---|---|
27 %! s.a.b = 1; | 27 %! s.a.b = 1; |
28 %! c = fieldnames (s.a); | 28 %! c = fieldnames (s.a); |
29 %! assert(iscell (c) && strcmp (c{1}, "b")); | 29 %! assert(iscell (c) && strcmp (c{1}, "b")); |
30 | 30 |
31 %% test/octave.test/struct/fieldnames-3.m | 31 %% test/octave.test/struct/fieldnames-3.m |
32 %!error <Invalid call to fieldnames.*> fieldnames (); | 32 %!error <Invalid call to fieldnames> fieldnames (); |
33 | 33 |
34 %% test/octave.test/struct/fieldnames-4.m | 34 %% test/octave.test/struct/fieldnames-4.m |
35 %!test | 35 %!test |
36 %! s.a = 1; | 36 %! s.a = 1; |
37 %! fail("fieldnames (s, 1)","Invalid call to fieldnames.*"); | 37 %! fail("fieldnames (s, 1)","Invalid call to fieldnames.*"); |
50 %! s.aaa = 1; | 50 %! s.aaa = 1; |
51 %! s.a = 2; | 51 %! s.a = 2; |
52 %! assert(!(isfield (s, "b"))); | 52 %! assert(!(isfield (s, "b"))); |
53 | 53 |
54 %% test/octave.test/struct/isfield-3.m | 54 %% test/octave.test/struct/isfield-3.m |
55 %!error <Invalid call to isfield.*> isfield (); | 55 %!error <Invalid call to isfield> isfield (); |
56 | 56 |
57 %% test/octave.test/struct/isfield-4.m | 57 %% test/octave.test/struct/isfield-4.m |
58 %!test | 58 %!test |
59 %! s.aaa = 1; | 59 %! s.aaa = 1; |
60 %! s.a = 2; | 60 %! s.a = 2; |
98 %!test | 98 %!test |
99 %! s.a.b = 1; | 99 %! s.a.b = 1; |
100 %! assert(isstruct (s.a)); | 100 %! assert(isstruct (s.a)); |
101 | 101 |
102 %% test/octave.test/struct/isstruct-10.m | 102 %% test/octave.test/struct/isstruct-10.m |
103 %!error <Invalid call to isstruct.*> isstruct (); | 103 %!error <Invalid call to isstruct> isstruct (); |
104 | 104 |
105 %% test/octave.test/struct/isstruct-11.m | 105 %% test/octave.test/struct/isstruct-11.m |
106 %!test | 106 %!test |
107 %! s.a = 1; | 107 %! s.a = 1; |
108 %! fail("isstruct (s, 1)","Invalid call to isstruct.*"); | 108 %! fail("isstruct (s, 1)","Invalid call to isstruct.*"); |