From ac1b7cc9e110e477b2980cfb1f13070737fc90a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 13 May 2020 14:57:40 +0200 Subject: [PATCH] Testsuite: fix formula for maximum difference error test --- tests/utils/fataltest.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/fataltest.m b/tests/utils/fataltest.m index 6a7b33ba1..035449cbd 100644 --- a/tests/utils/fataltest.m +++ b/tests/utils/fataltest.m @@ -1,4 +1,4 @@ function fataltest(a,b,n) - if max(max(abs(a)-abs(b))) > 1e-5 + if max(max(abs(a-b))) > 1e-5 error(['Test error in test ' int2str(n)]) end