Mercurial > hg > octave-lyh
changeset 10399:81bcdf5fd7a9
modernize failing tests
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 05 Mar 2010 13:22:14 +0100 |
parents | f7cf1a53e1c5 |
children | b14fd5116c29 |
files | test/ChangeLog test/test_logical-wfi-f.m test/test_logical-wfi-t.m test/test_struct.m |
diffstat | 4 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,9 @@ +2010-03-05 Jaroslav Hajek <highegg@gmail.com> + + * test_logical-wfi-f.m: Update. + * test_logical-wfi-t.m: Update. + * test_struct.m Update. + 2010-01-29 John W. Eaton <jwe@octave.org> * fntests.m (hasfunctions): Only check for DEFUN in .cc files.
--- a/test/test_logical-wfi-f.m +++ b/test/test_logical-wfi-f.m @@ -46,7 +46,7 @@ %! warning ("off", "Octave:fortran-indexing"); %!shared a %! a = 2; -%!error <A\(I\): Index exceeds matrix dimension\.> a(logical ([1,1])); +%!error id=Octave:index-out-of-bounds a(logical ([1,1])); %! warning ("wfi.state", "Octave:fortran-indexing"); %% test/octave.test/logical-wfi-f/v-1.m
--- a/test/test_logical-wfi-t.m +++ b/test/test_logical-wfi-t.m @@ -46,7 +46,7 @@ %! warning ("on", "Octave:fortran-indexing"); %!shared a %! a = 2; -%!error <A\(I\): Index exceeds matrix dimension\.> a(logical ([1,1])); +%!error id=Octave:index-out-of-bounds a(logical ([1,1])); %! warning ("wfi.state", "Octave:fortran-indexing"); %% test/octave.test/logical-wfi-t/v-1.m
--- a/test/test_struct.m +++ b/test/test_struct.m @@ -184,7 +184,7 @@ %! [a(1:3).x] = deal ([1, 5], [3, 7], [8, 9]); %! a(2:3).x(2); -%!error <Index exceeds matrix dimension> +%!error id=Octave:index-out-of-bounds %! a(1).x.x = 1; %! a(2).x; @@ -258,7 +258,7 @@ %! s(3).foo = 42; %! assert (s(3), struct ("foo", 42)); -%!error <Index exceeds matrix dimension> +%!error id=Octave:index-out-of-bounds %! s = resize(struct(),3,2); %! s(3).foo = 42; %! s(7);