mediawiki-extensions-AbuseF.../tests/parserTests/arrays.t
Marius Hoch 35747761fb Allow running the AbuseFilter parser tests via phpunit
I've also added myself to the credits file as I'm the only
maintainer of this extension for a while now.

Change-Id: Id998172ea2abd70b8243de9db1a96cc2cfa47a64
2013-07-08 19:22:43 +02:00

13 lines
337 B
Perl

array1 := [ 'a', 'b', 'c', ];
array2 := [];
array2[] := 'd';
array2[] := 'g';
array2[] := 'f';
array2[1] := 'e';
array3 := array1 + array2;
array4 := [ [ 1, 2, 3 ], [ 4, 5, 6 ] ];
(string(array3) == "a\nb\nc\nd\ne\nf\n" & !('b' in array2) & array1 contains 'c' & [ false, !(1;0), null ][1] & length(array3) == 6 &
array4[1][1] == 5 )