Testsuite: increase test tolerance under Octave for ecb/SURGibbs/fulton_fish.mod

time-shift
Sébastien Villemot 2021-05-05 15:43:19 +02:00
parent 96ad0fbec5
commit 749fc219e5
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,12 @@ good = [6.791587808530124
-0.530200000000000
-0.397400000000000];
if sum(abs(M_.params-good)) > 2e-14
if isoctave
tolerance = 1e-2;
else
tolerance = 2e-14;
end
if sum(abs(M_.params-good)) > tolerance
error(['sum of M_.params - good was: ' num2str(sum(abs(M_.params-good)))]);
end