diff options
author | Urban Müller | 2016-11-10 16:26:20 +0100 |
---|---|---|
committer | Urban Müller | 2016-11-10 16:26:20 +0100 |
commit | 252fe6507c38184cf595d5cf150b6e1d8e8acb51 (patch) | |
tree | 1eacc29c12e4e9c4823156e1008630fafe28b3d1 | |
parent | 665cf76c34f910504705bbb24da1498709d69960 (diff) | |
download | itools-252fe6507c38184cf595d5cf150b6e1d8e8acb51.tar.gz itools-252fe6507c38184cf595d5cf150b6e1d8e8acb51.tar.bz2 itools-252fe6507c38184cf595d5cf150b6e1d8e8acb51.zip |
more readable for php n00bs
-rwxr-xr-x | tests/it.t | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |