Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ltpda_uo_tests/test_uuid.m @ 44:409a22968d5e default
Add unit tests
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 18:42:11 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 1 % Test the UUID is a non-empty string. |
2 function res = test_uuid(varargin) | |
3 | |
4 res = ''; | |
5 utp = varargin{1}; | |
6 | |
7 if ~isempty(utp.className) | |
8 obj = feval(utp.className); | |
9 assert(ischar(obj.UUID)); | |
10 assert(~isempty(obj.UUID)); | |
11 res = sprintf('%s has a valid UUID', class(obj)); | |
12 end | |
13 | |
14 end |