diff options
-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)); |