diff options
author | Urban Müller | 2015-10-30 15:37:17 +0100 |
---|---|---|
committer | Urban Müller | 2015-10-30 15:39:23 +0100 |
commit | da71e326d6bbd7e531f0948cac99cf0c4d51ad6e (patch) | |
tree | ae5c0061e50e620d3171a4f2d95956bf43864586 /tests/it.t | |
parent | d908cb0d4e147721970c7eff5bd24f112bdac4cd (diff) | |
download | itools-da71e326d6bbd7e531f0948cac99cf0c4d51ad6e.tar.gz itools-da71e326d6bbd7e531f0948cac99cf0c4d51ad6e.tar.bz2 itools-da71e326d6bbd7e531f0948cac99cf0c4d51ad6e.zip |
minimal it::sort
Diffstat (limited to 'tests/it.t')
-rwxr-xr-x | tests/it.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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!")); |