Mercurial > hg > ltpda
comparison m-toolbox/classes/tests/ao/@test_ao_ao/test_ao_ao.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_AO_AO run tests on the AO constructor and associated methods. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: TEST_AO_AO run tests on the AO constructor and associated methods. | |
5 % | |
6 % | |
7 % VERSION: $Id: test_ao_ao.m,v 1.1 2010/12/20 12:51:58 hewitson Exp $ | |
8 % | |
9 % | |
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | |
12 classdef test_ao_ao < ltpda_uoh_tests | |
13 | |
14 | |
15 methods | |
16 function utp = test_ao_ao(varargin) | |
17 | |
18 utp.testData = test_ao_ao.generateMixedTestData(); | |
19 | |
20 utp.methodName = 'ao'; | |
21 utp.className = 'ao'; | |
22 | |
23 end | |
24 | |
25 end | |
26 | |
27 | |
28 methods (Static, Access=private) | |
29 | |
30 function out = generateMixedTestData() | |
31 out = []; | |
32 | |
33 % Single number cdata ao | |
34 out = [out ao(1)]; | |
35 | |
36 % Time-series ao | |
37 out = [out ao(plist('tsfcn', 't', 'fs', 2.3, 'nsecs', 10))]; | |
38 | |
39 % Frequency-series AO | |
40 out = [out ao(plist('fsfcn', 'randn(size(f)).^2', 'f', 1:10))]; | |
41 | |
42 % XY AO | |
43 out = [out ao(1:10,1:10)]; | |
44 end % End generateTestData() | |
45 | |
46 end % End private methods | |
47 | |
48 | |
49 end | |
50 | |
51 % END |