Skip to content

Commit

Permalink
cleanup and bump to 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfekete committed Aug 11, 2015
1 parent 89b0f48 commit 5b53de5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion reorder.v1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(exports){
reorder = {version: "0.1.0"}; // semver
reorder = {version: "0.0.8"}; // semver

reorder.debug = false;
// Use as: [4,3,2].sort(reorder.cmp_number_asc);
Expand Down
2 changes: 1 addition & 1 deletion reorder.v1.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
reorder = {version: "0.1.0"}; // semver
reorder = {version: "0.0.8"}; // semver

reorder.debug = false;
40 changes: 20 additions & 20 deletions test/ca-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ suite.addBatch({
assert.permutationEqual(row_order, erows);
assert.permutationEqual(col_order, ecols);
},
"harder": function() {
var mat = [
[1, 0, 0, 1, 0],
[0, 1, 1, 0, 1],
[1, 0, 0, 1, 0],
[1, 1, 0, 0, 0],
[0, 1, 1, 0, 1]
],
res = reorder.ca_order(mat),
col_order = res.cols,
row_order = res.rows;
console.log('col_order: '+col_order);
console.log('row_order: '+row_order);
reorder.displaymat(mat);
reorder.displaymat(mat, col_order, row_order);
},
// "harder": function() {
// var mat = [
// [1, 0, 0, 1, 0],
// [0, 1, 1, 0, 1],
// [1, 0, 0, 1, 0],
// [1, 1, 0, 0, 0],
// [0, 1, 1, 0, 1]
// ],
// res = reorder.ca_order(mat),
// col_order = res.cols,
// row_order = res.rows;
// console.log('col_order: '+col_order);
// console.log('row_order: '+row_order);
// reorder.displaymat(mat);
// reorder.displaymat(mat, col_order, row_order);
// },
// "bertin": function() {
// var mat = [
// [6, 6, 2, 5, 3],
Expand Down Expand Up @@ -104,10 +104,10 @@ suite.addBatch({

assert.permutationEqual(row_order, erows);
assert.permutationEqual(col_order, ecols);
console.log('col_order: '+col_order);
console.log('row_order: '+row_order);
reorder.printmat(mat);
reorder.printmat(mat, col_order, row_order);
// console.log('col_order: '+col_order);
// console.log('row_order: '+row_order);
// reorder.printmat(mat);
// reorder.printmat(mat, col_order, row_order);
}
}
});
Expand Down

0 comments on commit 5b53de5

Please sign in to comment.