deno.land / x / simplestatistic@v7.7.1 / test / unique_count_sorted.test.js

unique_count_sorted.test.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 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();});
simplestatistic

Version Info

Tagged at
2 years ago