mediawiki-extensions-AbuseF.../tests/parserTests/mwexamples-comparisons.t
Daimona Eaytoy 9eea111d9f Sync parser tests with examples on mediawiki
I added on MW an example of comparison with empty array, which we should
keep inside the dedicated test as well.

Change-Id: Ifa4bca85c8978ef24ed5bb26787730bb4521261f
2018-04-26 18:47:51 +02:00

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')