Mercurial > hg > ltpda
view testing/utp_1.1/utp_fcns/get_test_ples.m @ 44:409a22968d5e default
Add unit tests
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 18:42:11 +0100 |
parents | |
children |
line wrap: on
line source
% GET_TEST_PLES returns parameter lists with exception for the equal method % % CALL: [ple1,ple2,ple3,ple4,ple5,ple6] = get_test_ples % % OUTPUTS: ple1 - created, proctime, UUID, param/desc, version % ple2 - created, proctime, UUID, param/desc, name, methodInvars, % version % ple3 - history, created, UUID, param/desc, name, version % ple4 - identical to ple1 % ple5 - identical to ple1 % ple6 - identical to ple1 % % VERSION: $Id: get_test_ples.m,v 1.7 2010/06/07 16:41:47 ingo Exp $ % function [ple1,ple2,ple3,ple4,ple5,ple6] = get_test_ples() %% ple1 ple1 = plist('Exceptions', {'created', 'proctime', 'UUID', 'param/desc', 'version'}); % Possible reasons for this exceptions: % % 'created' : The rebuid method creates the new object at a different % time. % 'proctime' : The rebuid method creates the new object at a different % time. % 'UUID' : The rebuild method creates a new object with a new UUID % 'param/desc': The rebuild method doesn't rebuild the description of a % parameter. Even the possible options are not rebuilt. The % rebuild method rebuilds only the used key/value pair. % %% ple2 ple2 = plist('Exceptions', {'created', 'proctime', 'UUID', 'param/desc', 'name', 'methodInvars', 'version'}); % Possible reasons for this exceptions (see above): % % 'name' : Sometimes adds a method the variable name to the name % of an object. But the rebuild method uses its own % created variable names. % 'methodInvars': The history adds always the variable names of the input % object or a name which represents the variable name. % Our rebuild method create its own variable names. %% ple3 ple3 = plist('Exceptions', {'history', 'created', 'UUID', 'param/desc', 'name', 'version'}); % 'version' in some cases, like whenever the constructor goes through a % from* file, then the version can be different than the % constructor version so after the copy constructor the version % is different. %% ple4 ple4 = plist('Exceptions', {'created', 'proctime', 'UUID', 'param/desc', 'name', 'methodInvars', 'version', 'plistUsed'}); % Possible reasons for this exceptions (see above): % % 'plistUsed': Some methods put the variable name as a key/value pair % to the history plist. For example: % 'name'/'fir((1./smoother(ASD(a4642512))))' %% ple5 ple5 = ple1; %% ple6 ple6 = ple1; end