☰
Debian Codegraph
@
1:1.43.9+dfsg-1
/
/
extensions
/
AbuseFilter
/
tests
/
parserTests
/
array-assignment.t
☽
☼
extensions/AbuseFilter/tests/parserTests/array-assignment.t
code
plain
raw
GPL-2.0+
Andrew Garrett; Daimona Eaytoy; Marius Hoch; River Tarnell; Victor Vasiliev
debian/copyright
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