mediawiki-extensions-AbuseF.../tests/parserTests/comparisons.t
Huji Lee d07717dd0d Use triple equals in abuse filter parser tests
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
2020-10-06 12:29:47 -04:00

31 lines
518 B
Raku

(2 = 2) &
(2 == 2) &
(2 === 2) &
('2' = 2) &
('2' == 2) &
('2' !== 2) &
(['1','2'] = ['1','2']) &
(['1','2'] == ['1','2']) &
(['1','2'] === ['1','2']) &
(['1','2'] != ['2','1']) &
(['1','2'] = ['1',2]) &
(['1','2'] == ['1',2]) &
(['1','2'] !== ['1',2]) &
(true = 1) &
(true == 1) &
(true !== 1) &
(false != 0) &
(false = '') &
(false == '') &
(false !== '') &
(false = []) &
(false == []) &
(false !== []) &
(false = null) &
(false == null) &
(false !== null) &
([] = null) &
([] == null) &
([] !== null) &
([] != '')