Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
ae80129d
Commit
ae80129d
authored
Mar 29, 2013
by
Stéphane Adjemian
Browse files
Added unitary test for @dynSeries/size.
parent
45b89a17
Changes
1
Show whitespace changes
Inline
Side-by-side
matlab/@dynSeries/subsref.m
View file @
ae80129d
...
...
@@ -407,3 +407,26 @@ end
%
$
t
(
5
)
=
dyn_assert
(
e
.
init
,
a
.
init
);
%
$
T
=
all
(
t
);
%
@eof
:
9
%
@test
:
10
%
$
%
Define
a
data
set
.
%
$
A
=
[
transpose
(
1
:
60
),
2
*
transpose
(
1
:
60
),
3
*
transpose
(
1
:
60
)];
%
$
%
$
%
Define
names
%
$
A_name
=
{
'
A1
';'
A2
';'
B1
'
};
%
$
%
$
%
Instantiate
a
time
series
object
.
%
$
ts1
=
dynSeries
(
A
,
'
1971
Q1
'
,
A_name
,[]);
%
$
%
$
%
Test
the
size
method
.
%
$
B
=
ts1
.
size
();
%
$
C
=
ts1
.
size
(
1
);
%
$
D
=
ts1
.
size
(
2
);
%
$
E
=
ts1
.
size
;
%
$
%
$
t
(
1
)
=
dyn_assert
(
B
,[
60
,
3
]);
%
$
t
(
2
)
=
dyn_assert
(
E
,[
60
,
3
]);
%
$
t
(
3
)
=
dyn_assert
(
C
,
60
);
%
$
t
(
4
)
=
dyn_assert
(
D
,
3
);
%
$
T
=
all
(
t
);
%
@eof
:
10
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment