{
const even = [3, 6, 7, 8, 8, 10, 13, 15, 16, 20];
strictEqual(quantile(even, 0), 3);
strictEqual(quantile(even, 0.25), 7.25);
strictEqual(quantile(even, 0.5), 9);
strictEqual(quantile(even, 0.75), 14.5);
strictEqual(quantile(even, 1), 20);
const odd = [3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20];
strictEqual(quantile(odd, 0), 3);
strictEqual(quantile(odd, 0.25), 7.5);
strictEqual(quantile(odd, 0.5), 9);
strictEqual(quantile(odd, 0.75), 14);
strictEqual(quantile(odd, 1), 20);
}