Only test the value of ndat member in @dynDates/isempty function.
parent
18a19f3200
commit
b98c390ed8
|
@ -39,7 +39,7 @@ function B = isempty(A) % --*-- 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 = all(isnan(A.time(:))) && isnan(A.freq) && isequal(A.ndat,0);
|
B = isequal(A.ndat,0);
|
||||||
|
|
||||||
%@test:1
|
%@test:1
|
||||||
%$ % Instantiate an empty dynDate object
|
%$ % Instantiate an empty dynDate object
|
||||||
|
|
Loading…
Reference in New Issue