mediawiki-extensions-AbuseF.../tests/parserTests/mwexamples-comparisons.t

21 lines
395 B
Perl
Raw Normal View History

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