diff --git a/src/dassert.m b/src/dassert.m index 67658b5f3304fb393d1954a2a3b848a5adcadabe..a9138599614b5076645ab43b5e2397bf834a856c 100644 --- a/src/dassert.m +++ b/src/dassert.m @@ -2,7 +2,7 @@ function t = dassert(A,B,tol) % This function tests the equality of two objects. -% Copyright (C) 2011-2017 Dynare Team +% Copyright (C) 2011-2020 Dynare Team % % This file is part of Dynare (m-unit-tests module). % @@ -52,11 +52,7 @@ if isa(A,'double') if use_isequal_matlab_builtin t = isequal(A,B); if ~t - if ~isoctave && matlab_ver_less_than('7.14') - t = isequalwithequalnans(A,B); - else - t = isequaln(A,B); - end + t = isequaln(A,B); end else if max(abs(A(:)-B(:)))>tol @@ -94,4 +90,4 @@ else else t = isequal(A, B, tol); end -end \ No newline at end of file +end