UNPKG

code-warrior

Version:

code like a warrior

12 lines (9 loc) 229 B
require('should'); var mergesort = require('./'); describe("mergesort", function() { it("can sort array", function() { var array = [4, 3, 5, 1, 2, 6]; mergesort(array) .should.eql([1, 2, 3, 4, 5, 6]); }); });