From da71e326d6bbd7e531f0948cac99cf0c4d51ad6e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 30 Oct 2015 15:37:17 +0100 Subject: minimal it::sort --- tests/it.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/it.t b/tests/it.t index 10c4d0e..33a6c13 100755 --- a/tests/it.t +++ b/tests/it.t @@ -393,3 +393,7 @@ is(it::any2utf8(array(utf8_decode('Müller') => utf8_decode('Müller'))), array( foreach (array($dummy, false, true, null, 1, "a", "Ä", "/", array()) as $var) is(it::json_decode(it::json_encode($var)), $var); + +is(it::sort(array("2!","19!","1!")), array("1!", "19!", "2!")); +is(it::sort(array("2!","19!","1!"), "r"), array("2!", "19!", "1!")); +is(it::sort(array("2!","19!","1!"), "rn"), array("19!", "2!", "1!")); -- cgit v1.2.3