From 252fe6507c38184cf595d5cf150b6e1d8e8acb51 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 10 Nov 2016 16:26:20 +0100 Subject: more readable for php n00bs --- tests/it.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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)); -- cgit v1.2.3