# HG changeset patch # User address@hidden # Date 1232733021 -3600 # Node ID 555ad338713fdb2e5741c7fff7e9124f4d7ab05e # Parent 8dd39dca00e8f9c90fd1463bd6ac1e46af2ea891 test/test_prefer.m: update test to reflect new API of the 'type' function. diff -r 8dd39dca00e8 -r 555ad338713f test/ChangeLog --- a/test/ChangeLog Fri Jan 23 18:08:29 2009 +0100 +++ b/test/ChangeLog Fri Jan 23 18:50:21 2009 +0100 @@ -1,3 +1,7 @@ +2009-01-23 Soren Hauberg + + * test_prefer.m: Update to match new API of the 'type' function. + 2008-12-24 John W. Eaton * fntests.m (hastests): Use fread instead of fscanf to preserve diff -r 8dd39dca00e8 -r 555ad338713f test/test_prefer.m --- a/test/test_prefer.m Fri Jan 23 18:08:29 2009 +0100 +++ b/test/test_prefer.m Fri Jan 23 18:50:21 2009 +0100 @@ -135,8 +135,8 @@ %! print_empty_dimensions (0); %! a = cell (1, 1); %! b = type -q a; -%! assert(!isempty(findstr(b,"[]"))); -%! assert(isempty(findstr(b,"[](0x0)"))); +%! assert (!isempty (findstr (b{1}, "[]"))); +%! assert (isempty (findstr (b{1} ,"[](0x0)"))); %! print_empty_dimensions (ped); %% test/octave.test/prefer/prefer-22.m @@ -145,7 +145,7 @@ %! print_empty_dimensions (1); %! a = cell (1, 1); %! b = type -q a; -%! assert(!isempty(findstr(b,"[](0x0)"))); +%! assert (!isempty (findstr (b{1}, "[](0x0)"))); %! print_empty_dimensions (ped); %% test/octave.test/prefer/prefer-23.m