mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
d9d5af3890
This problem have been making filters potentially fail silently since 2009. Also add tests for arrays to make sure that no problems arise when short circuit is used. Bug: T204841 Change-Id: Ie4e2e06498c1202ba73afcc5d164a72427abbca5
19 lines
493 B
Raku
19 lines
493 B
Raku
a := [1, 2, 3];
|
|
b := [1, 2, 3];
|
|
c := [2, 3, 4];
|
|
d := [1, 2, 3, 4];
|
|
e := ['1', '2', '3'];
|
|
f := [[['1']]];
|
|
g := [[[1]]];
|
|
h := [[1, 2], 3];
|
|
i := [['1', 2], '3'];
|
|
j := [1];
|
|
k := ['1'];
|
|
l := [];
|
|
m := 42;
|
|
n := [0,1];
|
|
|
|
a == b & a === b & a != c & b != d & a == e & a !== e & f == g & f !== g & h == i & h !== i & e != i & j != 1 &
|
|
k != '1' & l == false & l == null & l !== false & l !== null & false == l & null == l & false !== l & null !== l &
|
|
b[5**2/((4+1)*5)] == a[43-m] & a[n[0]] === b[n[m-42]]
|