diff options
Diffstat (limited to 'www/wiki/extensions/AbuseFilter/tests/parserTests/arith.t')
-rw-r--r-- | www/wiki/extensions/AbuseFilter/tests/parserTests/arith.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/www/wiki/extensions/AbuseFilter/tests/parserTests/arith.t b/www/wiki/extensions/AbuseFilter/tests/parserTests/arith.t new file mode 100644 index 00000000..1f88e9df --- /dev/null +++ b/www/wiki/extensions/AbuseFilter/tests/parserTests/arith.t @@ -0,0 +1,27 @@ +(1 + 1 === 2) & +(1.5 + 1.5 === 3.0) & +(2.5 + 1 === 3.5) & +(0 + 1 === 1) & +(2.5 + 0 === 2.5) & +(5 - 3 === 2) & +(5 - 3.5 === 1.5) & +(5.5 - 3.5 === 2.0) & +(1 - 0 === 1) & +(2.5 - 0 === 2.5) & +(2 * 3 === 6) & +(2 * 3.5 === 7.0) & +(2.5 * 3.5 === 8.75) & +(2.5 * 0 === 0.0) & +(10 / 2 === 5) & +(10 / 2.5 === 4.0) & +(18 / 36 === 0.5) & +(0 / 36 === 0) & +(12.5 / 2.5 === 5.0) & +(10.5 / 2.5 === 4.2) & +(10 % 7 === 3) & +(10.48762 % 7 === 3) & +(10 % 7.123576 === 3) & +(2 ** 4 === 16) & +(2.5 ** 2 === 6.25) & +(2.5 ** 0 === 1.0) & +(1000 ** 0 === 1)
\ No newline at end of file |