Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ltpda_obj_tests/test_char.m @ 47:dd93c9ba6624 database-connection-manager
Fix Java dialog
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 19:07:27 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 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 |