deno.land / x / simplestatistic@v7.7.1 / test / unique_count_sorted.test.js
12345678910111213141516/* eslint no-shadow: 0 */
const test = require("tap").test;const uniqueCountSorted = require("../").uniqueCountSorted;
test("uniqueCountSorted", function (t) { t.equal(uniqueCountSorted([]), 0); t.equal(uniqueCountSorted([1]), 1); t.equal(uniqueCountSorted([undefined]), 1); t.equal(uniqueCountSorted([1, 2, 3, 4]), 4); t.equal(uniqueCountSorted([1, 2, 3, 3, 4]), 4); t.equal(uniqueCountSorted([1, 2, 3, 3, 4, 4]), 4); t.equal(uniqueCountSorted([1, 1, 2, 3, 3, 4, 4]), 4); t.end();});
Version Info