mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-03 18:16:15 +00:00
8cfd527f31
Some of them are actually too simple, and may be unuseful in tricky situations. This patch adds a lot of test cases to provide an (almost) bombproof safety with future patches. Depends-On: I0bb1ed0109af66997e238b532d342d82d4c4ae19 Change-Id: I274ef306775c36be20acb662353f6537ff3f1a33
21 lines
395 B
Raku
21 lines
395 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]) &
|
|
!(['1'] == '1')
|
|
|