Skip to content

Commit

Permalink
up deps and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Feb 21, 2017
1 parent 073c231 commit 5c909d9
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 35 deletions.
8 changes: 4 additions & 4 deletions doc/manual/example.md
@@ -1,15 +1,15 @@
```js
import ava from 'ava' ;

import sort from "@aureooms/js-sort" ;
import array from "@aureooms/js-array" ;
import * as sort from "@aureooms/js-sort" ;
import * as array from "@aureooms/js-array" ;
import search from "@aureooms/js-search" ;
import heapsort from "@aureooms/js-heapsort" ;
import quicksort from "@aureooms/js-quicksort" ;
import partition from "@aureooms/js-partition" ;
import insitusortspec from "@aureooms/js-in-situ-sort-spec" ;
import spec from "@aureooms/js-in-situ-sort-spec" ;

insitusortspec.test( ava , [
spec.test( ava , [
[ "heapsort (unary)", heapsort.dary( 1 ) ],
[ "heapsort (binary)", heapsort.dary( 2 ) ],
[ "heapsort (ternary)", heapsort.dary( 3 ) ],
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/mock.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 4 additions & 10 deletions lib/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -23,22 +23,22 @@
"url": "https://github.com/aureooms/js-in-situ-sort-spec/issues"
},
"dependencies": {
"@aureooms/js-array": "^3.1.0",
"@aureooms/js-compare": "^1.4.3",
"@aureooms/js-array": "^4.0.0",
"@aureooms/js-compare": "^1.4.5",
"@aureooms/js-functools": "^2.0.3",
"@aureooms/js-itertools": "^3.0.0",
"@aureooms/js-random": "^1.0.1",
"@aureooms/js-sort": "^6.0.0"
"@aureooms/js-itertools": "^3.1.1",
"@aureooms/js-random": "^2.0.0",
"@aureooms/js-sort": "^7.0.0"
},
"devDependencies": {
"ava": "^0.17.0",
"babel-cli": "^6.16.0",
"babel-polyfill": "^6.16.0",
"babel-preset-latest": "^6.16.0",
"codeclimate-test-reporter": "^0.4.0",
"coveralls": "^2.11.14",
"esdoc": "^0.5.0",
"nyc": "^10.0.0"
"ava": "^0.18.2",
"babel-cli": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-latest": "^6.22.0",
"codeclimate-test-reporter": "^0.4.1",
"coveralls": "^2.11.16",
"esdoc": "^0.5.2",
"nyc": "^10.1.2"
},
"homepage": "http://aureooms.github.io/js-in-situ-sort-spec",
"keywords": [
Expand Down
12 changes: 6 additions & 6 deletions src/test.js
@@ -1,7 +1,7 @@

import sort from "@aureooms/js-sort" ;
import array from "@aureooms/js-array" ;
import random from "@aureooms/js-random" ;
import { issorted } from "@aureooms/js-sort" ;
import { iota } from "@aureooms/js-array" ;
import { shuffle } from "@aureooms/js-random" ;
import compare from "@aureooms/js-compare" ;
import * as itertools from "@aureooms/js-itertools" ;
import functools from "@aureooms/js-functools" ;
Expand All @@ -14,14 +14,14 @@ function check ( _test , sortname , method , ctor , n , comparename , compare )

// SETUP ARRAY
const a = new ctor(n);
array.iota( a, 0, n, 0 );
iota( a, 0, n, 0 );

// SORT ARRAY
random.shuffle( a, 0, n );
shuffle( a, 0, n );
method( compare, a, 0, n );

// TEST PREDICATE
t.is( sort.issorted( compare , a , 0 , n ) , n , "check sorted" ) ;
t.is( issorted( compare , a , 0 , n ) , n , "check sorted" ) ;
t.is( a.length, n, "check length a" );

} );
Expand Down

0 comments on commit 5c909d9

Please sign in to comment.