comparison m-toolbox/classes/tests/@ltpda_obj_tests/test_display.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % Test the display() method returns a non-empty string.
2 function res = test_display(varargin)
3
4 utp = varargin{1};
5
6 % get test data
7 data = utp.getTestData;
8 for kk=1:numel(data)
9 d = data(kk);
10 txt = display(d);
11 assert(iscell(txt));
12 assert(~isempty(txt));
13 end
14 res = sprintf('%s/char seems to work', class(data));
15
16 end