comparison 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
comparison
equal deleted inserted replaced
43:bc767aaa99a8 44:409a22968d5e
1 % GET_TEST_PLES returns parameter lists with exception for the equal method
2 %
3 % CALL: [ple1,ple2,ple3,ple4,ple5,ple6] = get_test_ples
4 %
5 % OUTPUTS: ple1 - created, proctime, UUID, param/desc, version
6 % ple2 - created, proctime, UUID, param/desc, name, methodInvars,
7 % version
8 % ple3 - history, created, UUID, param/desc, name, version
9 % ple4 - identical to ple1
10 % ple5 - identical to ple1
11 % ple6 - identical to ple1
12 %
13 % VERSION: $Id: get_test_ples.m,v 1.7 2010/06/07 16:41:47 ingo Exp $
14 %
15 function [ple1,ple2,ple3,ple4,ple5,ple6] = get_test_ples()
16
17 %% ple1
18 ple1 = plist('Exceptions', {'created', 'proctime', 'UUID', 'param/desc', 'version'});
19
20 % Possible reasons for this exceptions:
21 %
22 % 'created' : The rebuid method creates the new object at a different
23 % time.
24 % 'proctime' : The rebuid method creates the new object at a different
25 % time.
26 % 'UUID' : The rebuild method creates a new object with a new UUID
27 % 'param/desc': The rebuild method doesn't rebuild the description of a
28 % parameter. Even the possible options are not rebuilt. The
29 % rebuild method rebuilds only the used key/value pair.
30 %
31
32 %% ple2
33 ple2 = plist('Exceptions', {'created', 'proctime', 'UUID', 'param/desc', 'name', 'methodInvars', 'version'});
34
35 % Possible reasons for this exceptions (see above):
36 %
37 % 'name' : Sometimes adds a method the variable name to the name
38 % of an object. But the rebuild method uses its own
39 % created variable names.
40 % 'methodInvars': The history adds always the variable names of the input
41 % object or a name which represents the variable name.
42 % Our rebuild method create its own variable names.
43
44 %% ple3
45 ple3 = plist('Exceptions', {'history', 'created', 'UUID', 'param/desc', 'name', 'version'});
46
47
48 % 'version' in some cases, like whenever the constructor goes through a
49 % from* file, then the version can be different than the
50 % constructor version so after the copy constructor the version
51 % is different.
52
53 %% ple4
54 ple4 = plist('Exceptions', {'created', 'proctime', 'UUID', 'param/desc', 'name', 'methodInvars', 'version', 'plistUsed'});
55
56 % Possible reasons for this exceptions (see above):
57 %
58 % 'plistUsed': Some methods put the variable name as a key/value pair
59 % to the history plist. For example:
60 % 'name'/'fir((1./smoother(ASD(a4642512))))'
61
62 %% ple5
63 ple5 = ple1;
64
65 %% ple6
66 ple6 = ple1;
67
68
69 end
70