algosort
Version:
This node package is for all javascript developers who are interested in sorting algorithms. This package gives you the possibility to choose between many different sorting algorithms. This package will output a two dimensional array of all numbers in dif
15 lines (12 loc) • 440 B
JavaScript
const algosort = require("./index.js");
const assert = require('assert').strict;
describe("sorting and output test", function() {
it("should be able to output the sorted array with all different output options", function() {
var sortedNumbers = algosort.algosort({
algorithm: 'bubblesort',
numbers: [1, 3, 2, 7, 3, 9, 5, 6],
output: 'afterEachNumber'
});
console.log(sortedNumbers);
});
});