diff options
Diffstat (limited to 'testsuite/runnable')
| -rw-r--r-- | testsuite/runnable/float_arithmetic.elna | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/runnable/float_arithmetic.elna b/testsuite/runnable/float_arithmetic.elna new file mode 100644 index 0000000..73072f2 --- /dev/null +++ b/testsuite/runnable/float_arithmetic.elna @@ -0,0 +1,13 @@ +begin + assert(6.0 / 2.0 = 3.0); + assert(5.0 / 2.0 = 2.5); + assert(3.0 * 0.5 = 1.5); + assert(-3.0 + 1.0 = -2.0); + assert(10.0 - 4.0 = 6.0); + + assert(6.0f / 2.0f = 3.0f); + assert(5.0f / 2.0f = 2.5f); + assert(3.0f * 0.5f = 1.5f); + assert(1.0f / 4.0f = 0.25f); + assert(-3.14f < 0.0f) +end. |
