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
Dynare
reporting
Commits
a23de790
Commit
a23de790
authored
Jan 09, 2017
by
Houtan Bastani
Browse files
require that ‘precision’ argument to table take non-negative integers
parent
19ddc69c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@report_table/report_table.m
View file @
a23de790
...
...
@@ -12,7 +12,7 @@ function o = report_table(varargin)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-201
4
Dynare Team
% Copyright (C) 2013-201
7
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -97,7 +97,7 @@ if length(o.title) ~= length(o.titleFormat)
end
assert
(
islogical
(
o
.
showHlines
),
'@report_table.report_table: showHlines must be true or false'
);
assert
(
islogical
(
o
.
showVlines
),
'@report_table.report_table: showVlines must be true or false'
);
assert
(
isint
(
o
.
precision
),
'@report_table.report_table: precision must be a
n int
'
);
assert
(
isint
(
o
.
precision
)
&&
o
.
precision
>=
0
,
'@report_table.report_table: precision must be a
non-negative integer
'
);
assert
(
isempty
(
o
.
range
)
||
length
(
o
.
range
)
<=
2
&&
allCellsAreDatesRange
(
o
.
range
),
...
[
'@report_table.report_table: range is specified as a dates range, e.g. '
...
'
''
dates(
''
1999q1
''
):dates(
''
1999q3
''
)
''
.'
]);
...
...
Write
Preview
Markdown
is supported
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