Mercurial > hg > ltpda
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/tests/ao/@test_ao_ao/test_ao_ao.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,51 @@ +% TEST_AO_AO run tests on the AO constructor and associated methods. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DESCRIPTION: TEST_AO_AO run tests on the AO constructor and associated methods. +% +% +% VERSION: $Id: test_ao_ao.m,v 1.1 2010/12/20 12:51:58 hewitson Exp $ +% +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +classdef test_ao_ao < ltpda_uoh_tests + + + methods + function utp = test_ao_ao(varargin) + + utp.testData = test_ao_ao.generateMixedTestData(); + + utp.methodName = 'ao'; + utp.className = 'ao'; + + end + + end + + + methods (Static, Access=private) + + function out = generateMixedTestData() + out = []; + + % Single number cdata ao + out = [out ao(1)]; + + % Time-series ao + out = [out ao(plist('tsfcn', 't', 'fs', 2.3, 'nsecs', 10))]; + + % Frequency-series AO + out = [out ao(plist('fsfcn', 'randn(size(f)).^2', 'f', 1:10))]; + + % XY AO + out = [out ao(1:10,1:10)]; + end % End generateTestData() + + end % End private methods + + +end + +% END \ No newline at end of file