Only test the value of ndat member in @dynDates/isempty function.

time-shift
Stéphane Adjemian (Charybdis) 2013-10-11 09:48:55 +02:00
parent 18a19f3200
commit b98c390ed8
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function B = isempty(A) % --*-- 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 = all(isnan(A.time(:))) && isnan(A.freq) && isequal(A.ndat,0);
B = isequal(A.ndat,0);
%@test:1
%$ % Instantiate an empty dynDate object