Debian Codegraph @

extensions/AbuseFilter/tests/parserTests/array-assignment.t

raw
1 test_array := [ [1, 2], [3, 4], 'useless' ];
2
3 test_array[1] := 42;
4 test_array[ if true then 2 else 0 end] := 'foo';
5 test_array[] := 17;
6
7 test_array[0][0] == 1 & test_array[0][1] == 2 & test_array[1] == 42 & test_array[2] === 'foo' & test_array[3] == 17