changeset 8583:27b2db6ff0d7

test/test_prefer.m: update test to reflect new API of the 'type' function.
author sh@sh-t400
date Fri, 23 Jan 2009 15:03:39 -0500
parents 92d66bbd74af
children 848f7d3e589c
files test/ChangeLog test/test_prefer.m
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/ChangeLog	Fri Jan 23 15:03:16 2009 -0500
+++ b/test/ChangeLog	Fri Jan 23 15:03:39 2009 -0500
@@ -1,3 +1,7 @@
+2009-01-23  Søren Hauberg  <hauberg@gmail.com>
+
+	* test_prefer.m: Update to match new API of the 'type' function.
+
 2008-12-24  John W. Eaton  <jwe@octave.org>
 
 	* fntests.m (hastests): Use fread instead of fscanf to preserve
--- a/test/test_prefer.m	Fri Jan 23 15:03:16 2009 -0500
+++ b/test/test_prefer.m	Fri Jan 23 15:03:39 2009 -0500
@@ -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