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
846aff99
Commit
846aff99
authored
Mar 14, 2013
by
Stéphane Adjemian
Browse files
Removed useless addpath command from unitary tests.
parent
a18766d6
Changes
12
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDate/format.m
View file @
846aff99
...
...
@@ -69,8 +69,6 @@ switch date.freq
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
'
1950
Q2
'
;
...
...
@@ -89,4 +87,4 @@ end
%
$
t
(
3
)
=
dyn_assert
(
date_3
,
DATE_3
);
%
$
t
(
4
)
=
dyn_assert
(
date_4
,
DATE_4
);
%
$
T
=
all
(
t
);
%
@eof
:
1
%
@eof
:
1
\ No newline at end of file
matlab/@dynDate/ge.m
View file @
846aff99
...
...
@@ -30,7 +30,7 @@ function c = ge(a,b)
%!
@end
deftypefn
%
@eod
:
%
Copyright
(
C
)
2011
Dynare
Team
%
Copyright
(
C
)
2011
,
2013
Dynare
Team
%
%
This
file
is
part
of
Dynare
.
%
...
...
@@ -47,8 +47,6 @@ function c = ge(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
a
>
b
c
=
1
;
else
...
...
@@ -60,8 +58,6 @@ else
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
'
1950
Q3
'
;
%
$
date_2
=
'
1950
Q3
'
;
...
...
@@ -84,4 +80,4 @@ end
%
$
t
(
3
)
=
dyn_assert
(
i3
,
0
);
%
$
t
(
4
)
=
dyn_assert
(
i4
,
1
);
%
$
T
=
all
(
t
);
%
@eof
:
1
%
@eof
:
1
\ No newline at end of file
matlab/@dynDate/gt.m
View file @
846aff99
...
...
@@ -46,8 +46,6 @@ function c = gt(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
nargin
~=
2
error
(
'
dynDate
::
eq
:
I
need
exactly
two
input
arguments
!
'
)
end
...
...
@@ -73,8 +71,6 @@ else
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
'
1950
Q2
'
;
...
...
@@ -99,4 +95,4 @@ end
%
$
t
(
3
)
=
dyn_assert
(
i3
,
0
);
%
$
t
(
4
)
=
dyn_assert
(
i4
,
0
);
%
$
T
=
all
(
t
);
%
@eof
:
1
%
@eof
:
1
\ No newline at end of file
matlab/@dynDate/le.m
View file @
846aff99
...
...
@@ -30,7 +30,7 @@ function c = le(a,b)
%!
@end
deftypefn
%
@eod
:
%
Copyright
(
C
)
2011
Dynare
Team
%
Copyright
(
C
)
2011
,
2013
Dynare
Team
%
%
This
file
is
part
of
Dynare
.
%
...
...
@@ -47,8 +47,6 @@ function c = le(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
a
<
b
c
=
1
;
else
...
...
@@ -60,8 +58,6 @@ else
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
'
1950
Q3
'
;
%
$
date_2
=
'
1950
Q3
'
;
...
...
matlab/@dynDate/lt.m
View file @
846aff99
...
...
@@ -46,8 +46,6 @@ function c = lt(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
nargin
~=
2
error
(
'
dynDate
::
eq
:
I
need
exactly
two
input
arguments
!
'
)
end
...
...
@@ -73,8 +71,6 @@ else
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
'
1950
Q2
'
;
...
...
matlab/@dynDate/max.m
View file @
846aff99
...
...
@@ -46,8 +46,6 @@ function c = max(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
nargin
~=
2
error
(
'
dynDate
::
min
:
I
need
exactly
two
input
arguments
!
'
)
end
...
...
@@ -67,14 +65,12 @@ else
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
2000
;
%
$
date_3
=
'
1950
Q
2
'
;
%
$
date_3
=
'
1950
q
2
'
;
%
$
date_4
=
'
1950
Q3
'
;
%
$
date_5
=
'
1950
M
1
'
;
%
$
date_5
=
'
1950
m
1
'
;
%
$
date_6
=
'
1948
M6
'
;
%
$
%
$
%
Call
the
tested
routine
.
...
...
matlab/@dynDate/min.m
View file @
846aff99
...
...
@@ -46,8 +46,6 @@ function c = min(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
nargin
~=
2
error
(
'
dynDate
::
min
:
I
need
exactly
two
input
arguments
!
'
)
end
...
...
@@ -67,8 +65,6 @@ else
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
2000
;
...
...
matlab/@dynDate/minus.m
View file @
846aff99
...
...
@@ -31,7 +31,7 @@ function c = minus(a,b)
%!
@end
deftypefn
%
@eod
:
%
Copyright
(
C
)
2011
Dynare
Team
%
Copyright
(
C
)
2011
,
2013
Dynare
Team
%
%
This
file
is
part
of
Dynare
.
%
...
...
@@ -48,8 +48,6 @@ function c = minus(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
~
(
isa
(
a
,
'
dynDate
'
)
&&
isa
(
b
,
'
dynDate
'
)
)
error
([
'
dynDate
:
:
minus
:
Input
arguments
'
inputname
(
1
)
'
and
'
inputname
(
2
)
'
must
be
dynDate
objects
!
'
])
end
...
...
@@ -77,8 +75,6 @@ switch a.freq
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_0_1
=
1950
;
%
$
date_0_2
=
1950
;
...
...
matlab/@dynDate/ne.m
View file @
846aff99
...
...
@@ -46,8 +46,6 @@ function c = ne(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
nargin
~=
2
error
(
'
dynDate
::
ne
:
I
need
exactly
two
input
arguments
!
'
)
end
...
...
@@ -63,11 +61,9 @@ end
c
=
~
isequal
(
a
.
time
,
b
.
time
);
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
'
1950
Q
2
'
;
%
$
date_2
=
'
1950
q
2
'
;
%
$
date_3
=
'
1950
M10
'
;
%
$
date_4
=
'
1950
W50
'
;
%
$
date_5
=
'
1950
W32
'
;
...
...
matlab/@dynDate/plus.m
View file @
846aff99
...
...
@@ -31,7 +31,7 @@ function c = plus(a,b)
%!
@end
deftypefn
%
@eod
:
%
Copyright
(
C
)
2011
Dynare
Team
%
Copyright
(
C
)
2011
,
2013
Dynare
Team
%
%
This
file
is
part
of
Dynare
.
%
...
...
@@ -48,8 +48,6 @@ function c = plus(a,b)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
AUTHORS
(
S
)
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
~
isa
(
a
,
'
dynDate
'
)
error
([
'
dynDate
:
:
plus
:
Input
argument
'
inputname
(
1
)
'
must
be
a
dynDate
object
!
'
])
end
...
...
@@ -58,7 +56,6 @@ if b<0 || ~isint(b)
error
([
'
dynDate
:
:
plus
:
Input
argument
'
inputname
(
2
)
'
must
be
a
positive
integer
'
])
end
if
b
==
0
c
=
a
;
return
...
...
@@ -80,8 +77,6 @@ switch a.freq
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
1950
;
%
$
date_2
=
'
1950
Q4
'
;
...
...
matlab/@dynDate/uminus.m
View file @
846aff99
...
...
@@ -29,7 +29,7 @@ function b = uminus(a)
%!
@end
deftypefn
%
@eod
:
%
Copyright
(
C
)
2011
Dynare
Team
%
Copyright
(
C
)
2011
,
2013
Dynare
Team
%
%
This
file
is
part
of
Dynare
.
%
...
...
@@ -46,8 +46,6 @@ function b = uminus(a)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
~
isa
(
a
,
'
dynDate
'
)
error
([
'
dynDate
:
:
uminus
:
Input
argument
'
inputname
(
1
)
'
must
be
a
dynDate
object
.
'
])
end
...
...
@@ -83,14 +81,12 @@ switch b.freq
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
'
1950
Q1
'
;
%
$
date_2
=
'
1950
Q4
'
;
%
$
date_3
=
'
1950
M1
'
;
%
$
date_4
=
'
1950
M12
'
;
%
$
date_5
=
'
1950
W
1
'
;
%
$
date_5
=
'
1950
w
1
'
;
%
$
date_6
=
'
1950
W52
'
;
%
$
date_7
=
2000
;
%
$
...
...
matlab/@dynDate/uplus.m
View file @
846aff99
...
...
@@ -29,7 +29,7 @@ function b = uplus(a)
%!
@end
deftypefn
%
@eod
:
%
Copyright
(
C
)
2011
Dynare
Team
%
Copyright
(
C
)
2011
,
2013
Dynare
Team
%
%
This
file
is
part
of
Dynare
.
%
...
...
@@ -46,8 +46,6 @@ function b = uplus(a)
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
%
Original
author
:
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
~
isa
(
a
,
'
dynDate
'
)
error
([
'
dynDate
:
:
uplus
:
Input
argument
'
inputname
(
1
)
'
must
be
a
dynDate
object
.
'
])
end
...
...
@@ -83,13 +81,11 @@ switch b.freq
end
%
@test
:
1
%
$
addpath
..
/
matlab
%
$
%
$
%
Define
some
dates
%
$
date_1
=
'
1950
Q3
'
;
%
$
date_2
=
'
1950
Q4
'
;
%
$
date_3
=
'
1950
M3
'
;
%
$
date_4
=
'
1950
M
12
'
;
%
$
date_4
=
'
1950
m
12
'
;
%
$
date_5
=
'
1950
W3
'
;
%
$
date_6
=
'
1950
W52
'
;
%
$
date_7
=
2000
;
...
...
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