diff options
author | Christian A. Weber | 2021-06-15 17:07:57 +0200 |
---|---|---|
committer | Christian A. Weber | 2021-06-15 17:07:57 +0200 |
commit | 0f9d990dc70536627d54eb437d7077cca159cf55 (patch) | |
tree | d1e2812bb0ad8fc58d03d8ef6d4b8ab94d48f3b4 /test/it.t | |
parent | 5aef64122fbb5a5855af095206bd642ca08cca61 (diff) | |
download | itools-0f9d990dc70536627d54eb437d7077cca159cf55.tar.gz itools-0f9d990dc70536627d54eb437d7077cca159cf55.tar.bz2 itools-0f9d990dc70536627d54eb437d7077cca159cf55.zip |
add tests for it::cdist. Two are commented out as they trigger an it::error()
Diffstat (limited to 'test/it.t')
-rwxr-xr-x | test/it.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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!"]); |