summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUrban Müller2016-11-10 16:26:20 +0100
committerUrban Müller2016-11-10 16:26:20 +0100
commit252fe6507c38184cf595d5cf150b6e1d8e8acb51 (patch)
tree1eacc29c12e4e9c4823156e1008630fafe28b3d1 /tests
parent665cf76c34f910504705bbb24da1498709d69960 (diff)
downloaditools-252fe6507c38184cf595d5cf150b6e1d8e8acb51.tar.gz
itools-252fe6507c38184cf595d5cf150b6e1d8e8acb51.tar.bz2
itools-252fe6507c38184cf595d5cf150b6e1d8e8acb51.zip
more readable for php n00bs
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));