summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/it.t b/tests/it.t
index b193591..1a4ccf9 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -415,6 +415,6 @@ is(it::mod(-8, 4), 0);
is(it::mod(0, 4), 0);
is(it::mod(7, 4), 3);
-is(it::map('5*$k+$v', array(1, 2)), array(1, 7));
-is(it::map(create_function('$k,$v', 'return 5*$k+$v;'), array(1, 2)), array(1, 7));
-is(it::map(function($k, $v) {return 5*$k+$v;}, array(1, 2)), array(1, 7));
+is(it::map('5*$k+$v', array(0 => 1, 1 => 2)), array(1, 7));
+is(it::map(create_function('$k,$v', 'return 5*$k+$v;'), array(0 => 1, 1 => 2)), array(1, 7));
+is(it::map(function($k, $v) {return 5*$k+$v;}, array(0 => 1, 1 => 2)), array(1, 7));