Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / chain-able-deps   js

Repository URL to install this package:

Version: 6.0.4 

/ src / loop / __tests__ / sort / sort.ts

var C = require('../../../exports')

test.skip('sort', function() {
  // test('sorts the elements of a list', function() {
  //   eq(C.sort(function(a, b) { return a - b }, [3, 1, 8, 1, 2, 5]), [1, 1, 2, 3, 5, 8])
  // })
  //
  // test('does not affect the list passed supplied', function() {
  //   var list = [3, 1, 8, 1, 2, 5]
  //   eq(C.sort(function(a, b) { return a - b }, list), [1, 1, 2, 3, 5, 8])
  //   eq(list, [3, 1, 8, 1, 2, 5])
  // })
  //
  // test('is curried', function() {
  //   var sortByLength = C.sort(function(a, b) { return a.length - b.length })
  //   eq(sortByLength(['one', 'two', 'three', 'four', 'five', 'six']),
  //     ['one', 'two', 'six', 'four', 'five', 'three'])
  // })
})