reorganize test folder: tests generation with MATLAB almost OK (but suboptimal method)
[valse.git] / src / test / OLD_TEST_MATLAB / checkOutput.m
diff --git a/src/test/OLD_TEST_MATLAB/checkOutput.m b/src/test/OLD_TEST_MATLAB/checkOutput.m
deleted file mode 100644 (file)
index c56ed0b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-function[]=checkOutput(varName, matrix, refMatrix, tol)
-
-       fprintf('Checking %s\n',varName);
-       maxError = max(max(max(max(abs(matrix - refMatrix)))));
-       if maxError >= tol
-               fprintf('    Inaccuracy: max(abs(error)) = %g >= %g\n',maxError,tol);
-       else
-               fprintf('    OK\n');
-       end
-
-end