From 0f9d990dc70536627d54eb437d7077cca159cf55 Mon Sep 17 00:00:00 2001
From: Christian A. Weber
Date: Tue, 15 Jun 2021 17:07:57 +0200
Subject: add tests for it::cdist. Two are commented out as they trigger an
 it::error()

---
 test/it.t | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/it.t b/test/it.t
index a6dc067..2585369 100755
--- a/test/it.t
+++ b/test/it.t
@@ -435,6 +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);
 
 is(it::sort(["2!","19!","1!"]), ["1!", "19!", "2!"]);
 is(it::sort(["2!","19!","1!"], "r"), ["2!", "19!", "1!"]);
-- 
cgit v1.2.3