mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-28 16:00:28 +00:00
9eea111d9f
I added on MW an example of comparison with empty array, which we should keep inside the dedicated test as well. Change-Id: Ifa4bca85c8978ef24ed5bb26787730bb4521261f
23 lines
426 B
Raku
23 lines
426 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')
|
|
|