Fixed bug (dates constructor of the form dates(FREQ, YEAR, SUBPERIOD) when FREQ is given by a character).

time-shift
Stéphane Adjemian (Charybdis) 2013-10-24 09:42:15 +02:00
parent 6128338a15
commit 901ab2758c
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,11 @@ function b = isdate(str) % --*-- Unitary tests --*--
% You should have received a copy of the GNU General Public License
% 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
%$