@comparison-sorting/specification

9.0.0 • Public • Published

📔 @comparison-sorting/specification

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 9.0.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 9.0.0
    8
  • 8.0.0
    0

Package Sidebar

Install

npm i @comparison-sorting/specification

Weekly Downloads

8

Version

9.0.0

License

AGPL-3.0

Unpacked Size

472 kB

Total Files

14

Last publish

Collaborators

  • raskat
  • aureooms