From ee8607940a1af96f2366ad4ea75db5b7c2c15c8f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 25 Jan 2017 16:07:50 +0100 Subject: standard php compatibility --- 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 c276d49..c4e8249 100755 --- a/tests/it.t +++ b/tests/it.t @@ -420,6 +420,6 @@ is(it::map(function($k, $v) {return 5*$k+$v;}, array(0 => 1, 1 => 2)), array(1, is(it::map('strlen', array("aaa", "aa")), array(3, 2)); is(it::map('it::ucfirst', array("aaa")), array("Aaa")); # Only map selected keys -is(it::map('2*$v', [3, 4, 5], 'keys' => '0,1'), [6, 8, 5]); -is(it::map('2*$v', [3, 4, 5], 'keys' => [0,1]), [6, 8, 5]); -is(it::map('2*$v', ['foo' => 1, 'bar' => 2], 'keys' => 'foo'), ['foo' => 2, 'bar' =>2]); +is(it::map('2*$v', [3, 4, 5], ['keys' => '0,1']), [6, 8, 5]); +is(it::map('2*$v', [3, 4, 5], ['keys' => [0,1]]), [6, 8, 5]); +is(it::map('2*$v', ['foo' => 1, 'bar' => 2], ['keys' => 'foo']), ['foo' => 2, 'bar' =>2]); -- cgit v1.2.3