summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/AbuseFilter/tests/parserTests/mwexamples-arithmetic.t
blob: 7cfaf4afbaaeac27cb62513afab215995966fe17 (plain)
1
2
3
4
5
6
7
8
/* Examples from [[mw:Extension:AbuseFilter/Rules format#Arithmetic]] */

1 + 1 === 2 &
2 * 2 === 4 &
12 / 24 === 0.5 &
24 / 12 === 2 &
9 ** 2 === 81 &
6 % 5 === 1