comparison m-toolbox/classes/tests/@ltpda_uo_tests/test_setDescription.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 setting the description works.
2 function res = test_setDescription(varargin)
3
4 res = '';
5 utp = varargin{1};
6
7 if ~isempty(utp.className)
8 obj = feval(utp.className);
9 desc = 'a nice description';
10 obj.setDescription(desc);
11 assert(ischar(obj.description));
12 assert(strcmp(desc, obj.description));
13 res = sprintf('%s/setDescription works', class(obj));
14 end
15
16 end