Mercurial > hg > ltpda
comparison m-toolbox/classes/tests/@ltpda_obj_tests/test_char.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 char() method returns a non-empty string. | |
2 function res = test_char(varargin) | |
3 | |
4 utp = varargin{1}; | |
5 | |
6 % get test data | |
7 data = utp.getTestData; | |
8 if ~isempty(data) | |
9 for kk=1:numel(data) | |
10 d = data(kk); | |
11 txt = char(d); | |
12 assert(ischar(txt)); | |
13 assert(~isempty(txt)); | |
14 end | |
15 end | |
16 | |
17 res = sprintf('%s/char seems to work', class(data)); | |
18 end |