From 38282a2c229368d531db339de7baad68985731f6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 17 Jun 2021 17:42:01 +0200 Subject: check ::cdist errors --- test/it.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/it.t b/test/it.t index 2585369..2f47959 100755 --- a/test/it.t +++ b/test/it.t @@ -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!"]); -- cgit v1.2.3