diff options
author | Urban Müller | 2021-06-17 17:42:01 +0200 |
---|---|---|
committer | Urban Müller | 2021-06-17 17:44:04 +0200 |
commit | 38282a2c229368d531db339de7baad68985731f6 (patch) | |
tree | 93d29e0f4211583b58e65eb029b2271d4c940834 | |
parent | 7003b47cc2654bff679a44bccd0ff8d57528378d (diff) | |
download | itools-38282a2c229368d531db339de7baad68985731f6.tar.gz itools-38282a2c229368d531db339de7baad68985731f6.tar.bz2 itools-38282a2c229368d531db339de7baad68985731f6.zip |
check ::cdist errors
-rwxr-xr-x | test/it.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -435,10 +435,10 @@ foreach ([$dummy, false, true, null, 1, "a", "Ä", "/", []] as $var) is(it::json_decode('{"foo":"bar"}')->foo, "bar"); is(it::json_decode('{"foo":"bar"}', ['assoc' => true])['foo'], "bar"); -#is(it::cdist(false), null); -#is(it::cdist("foo", false, "bar"), null); is(it::cdist(null), true); is(it::cdist(), true); +errlike(function() {it::cdist(false);}, "invalid file name"); +errlike(function() {it::cdist("foo", false, "bar");}, "invalid file name"); is(it::sort(["2!","19!","1!"]), ["1!", "19!", "2!"]); is(it::sort(["2!","19!","1!"], "r"), ["2!", "19!", "1!"]); |