mediawiki-extensions-AbuseF.../tests/parserTests/mwexamples-comparisons.t
Huji Lee d07717dd0d Use triple equals in abuse filter parser tests
The only exception is mwexamples-comparisons.t which intentionally
includes examples with = and == to test the "weak" version of the
comparison operator.

Bug: T262063
Change-Id: I6f92aadc69489da481a606bfda89617b8efbb261
2020-10-06 12:29:47 -04:00

22 lines
425 B
Raku

/* Examples from [[mw:Extension:AbuseFilter/Rules format#Simple comparisons]] */
!(1 == 2) &
(1 <= 2) &
!(1 >= 2) &
(1 != 2) &
(1 < 2) &
!(1 > 2) &
(2 = 2) &
('' == false) &
!('' === false) &
(1 == true) &
!(1 === true) &
(['1','2','3'] == ['1','2','3']) &
([1,2,3] === [1,2,3]) &
(['1','2','3'] == [1,2,3]) &
!(['1','2','3'] === [1,2,3]) &
([1,1,''] == [true, true, false]) &
([] == false) &
([] == null) &
!(['1'] == '1')