diff options
Diffstat (limited to 'Build/source/utils/asymptote/tests/arith/real.asy')
-rw-r--r-- | Build/source/utils/asymptote/tests/arith/real.asy | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/tests/arith/real.asy b/Build/source/utils/asymptote/tests/arith/real.asy new file mode 100644 index 00000000000..1628258cf83 --- /dev/null +++ b/Build/source/utils/asymptote/tests/arith/real.asy @@ -0,0 +1,18 @@ +// Real arithmetic. + +import TestLib; +StartTest("real error"); +assert((1.0-1.0) < realEpsilon); +EndTest(); +StartTest("real addition"); +assert((1.0+1.0) == (2.0)); +EndTest(); +StartTest("real subtraction"); +assert((2.0-1.0) == (1.0)); +EndTest(); +StartTest("real multiplication"); +assert((2.0*2.0) == (4.0)); +EndTest(); +StartTest("real division"); +assert((4.0/2.0) == (2.0)); +EndTest(); |