diff options
Diffstat (limited to 'Build/source/utils/asymptote/tests/TestLib.asy')
-rw-r--r-- | Build/source/utils/asymptote/tests/TestLib.asy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/tests/TestLib.asy b/Build/source/utils/asymptote/tests/TestLib.asy new file mode 100644 index 00000000000..a4a4b239927 --- /dev/null +++ b/Build/source/utils/asymptote/tests/TestLib.asy @@ -0,0 +1,15 @@ +bool close(pair a, pair b) +{ + real norm=(b == 0) ? 1 : max(abs(a),abs(b)); + return abs(a-b) <= 100*realEpsilon*norm; +} + +void StartTest(string desc) +{ + write("Testing " + desc + "...",flush); +} + +void EndTest() +{ + write("PASSED."); +} |