Fixed bug (dates constructor of the form dates(FREQ, YEAR, SUBPERIOD) when FREQ is given by a character).
parent
6128338a15
commit
901ab2758c
|
@ -25,7 +25,11 @@ function b = isdate(str) % --*-- Unitary tests --*--
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
b = isquaterly(str) || isyearly(str) || ismonthly(str) || isweekly(str);
|
if length(str)>1
|
||||||
|
b = isquaterly(str) || isyearly(str) || ismonthly(str) || isweekly(str);
|
||||||
|
else
|
||||||
|
b = 0;
|
||||||
|
end
|
||||||
|
|
||||||
%@test:1
|
%@test:1
|
||||||
%$
|
%$
|
||||||
|
|
Loading…
Reference in New Issue