Skip to content

Commit 7041217

Browse files
upgrade dev dependencies
1 parent a00d3c6 commit 7041217

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"name": "aureooms-js-array",
66
"author": "aureooms",
77
"devDependencies": {
8-
"aureooms-node-package": "^1.1.3",
9-
"aureooms-js-operator": "^0.1.3",
10-
"aureooms-js-mem": "^0.0.5",
8+
"aureooms-node-package": "^1.2.0",
9+
"aureooms-js-operator": "^1.0.0",
10+
"aureooms-js-mem": "^1.0.0",
1111
"aureooms-js-random": "^0.0.3",
12-
"aureooms-js-sort": "^0.0.4"
12+
"aureooms-js-compare": "^1.0.0"
1313
},
1414
"scripts": {
1515
"doc": "./node_modules/.bin/groc",
@@ -34,4 +34,4 @@
3434
"type": "git",
3535
"url": "https://github.com/aureooms/js-array.git"
3636
}
37-
}
37+
}

test/js/src/opt.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22

3-
var one, util, mem, sort, random, operator;
3+
var one, util, mem, compare, random, operator;
44

55
util = require( "util" );
66
mem = require( "aureooms-js-mem" );
7-
sort = require( "aureooms-js-sort" );
7+
compare = require( "aureooms-js-compare" );
88
random = require( "aureooms-js-random" );
99
operator = require( "aureooms-js-operator" );
1010

@@ -68,8 +68,8 @@ types = [
6868
];
6969

7070
predicates = [
71-
sort.increasing,
72-
sort.decreasing
71+
compare.increasing,
72+
compare.decreasing
7373
];
7474

7575
types.forEach( function ( type ) {

test/js/src/sort.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22

3-
var sort, random, sample, shuffle;
3+
var compare, random, sample, shuffle;
44

55
random = require( "aureooms-js-random" );
6-
sort = require( "aureooms-js-sort" );
6+
compare = require( "aureooms-js-compare" );
77
sample = random.__sample__( random.randint );
88
shuffle = random.__shuffle__( sample );
99

@@ -23,10 +23,18 @@ test( "sort", function () {
2323

2424
array.copy( a, 0, n, b, 0 );
2525

26-
array.sort( sort.increasing, a );
2726

28-
b.sort( sort.increasing );
27+
array.sort( compare.increasing, a );
2928

30-
deepEqual( array.slice( a, 0, n ) , b, ":)" );
29+
b.sort( compare.increasing );
30+
31+
deepEqual( array.slice( a, 0, n ) , b, "increasing" );
32+
33+
34+
array.sort( compare.decreasing, a );
35+
36+
b.sort( compare.decreasing );
37+
38+
deepEqual( array.slice( a, 0, n ) , b, "decreasing" );
3139

3240
});

0 commit comments

Comments
 (0)