mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
39fc7c12af
Added cachingParser back to *all* the parser tests, fixed a couple of differences with the normal parser, and added a couple of tests so that any cachingParser-related file has 100% coverage. Also move the remaining get_matches tests inside parserTests, and specify the parser used in case of failure. This also adds a new base class for parser-related tests with a couple of util methods. Bug: T201193 Change-Id: I980aec3481a52ecc35f1811a366014a5581a7cdb
31 lines
574 B
Perl
31 lines
574 B
Perl
+1 + -1 === 0 &
|
|
-1 + +2 === 1 &
|
|
-0 === 0 &
|
|
(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)
|