Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ltpda_uo_tests/test_description.m @ 31:a26669b59d7e database-connection-manager
Update LTPDAworkbench
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 1 % Test the description is '' by default. |
2 function res = test_description(varargin) | |
3 | |
4 res = ''; | |
5 utp = varargin{1}; | |
6 | |
7 if ~isempty(utp.className) | |
8 obj = feval(utp.className); | |
9 assert(ischar(obj.description)); | |
10 assert(isempty(obj.description)); | |
11 res = sprintf('%s has a valid description', class(obj)); | |
12 end | |
13 | |
14 end |