mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
d07717dd0d
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
22 lines
425 B
Raku
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')
|