comparison-sorting / specification

:notebook_with_decorative_cover: Comparison sorting specification for JavaScript

Home Page:https://comparison-sorting.github.io/specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In-place sorting specification for JavaScript. See docs. Parent is js-sort.

import ava from 'ava';
import * as spec from '@comparison-sorting/specification';

spec.test(
    ava, // Any testing library exhibiting the same interface as `ava`.
    [
        [
            'mock', // Name of the implementation.
            (compare, a, i, j) => spec.mock(compare, a, i, j), // Sorting implementation.
        ]
    ],
    {
        length: [24, 1000], // Array lengths to test.
        array: [Int8Array], // Array types to test.
    }
);

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

About

:notebook_with_decorative_cover: Comparison sorting specification for JavaScript

https://comparison-sorting.github.io/specification

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 75.5%Language:Shell 24.5%