Skip to content

Commit

Permalink
Manual cleanup of graph2distmat-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Jan 2, 2021
1 parent bd7c87c commit ff5577b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/graph2distmat-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const reorder = require('../dist/reorder.cjs');

const vows = require('vows'),
assert = require('assert');
const vows = require('vows');
const assert = require('assert');
const seedrandom = require('seedrandom');
Math.seedrandom('reorder');

Expand All @@ -11,15 +11,15 @@ suite.addBatch({
graph2distmat: {
simple() {
const mat = [
[0, 1, 0],
[1, 0, 1],
[0, 1, 0],
],
dist = [
[0, 1, 2],
[1, 0, 1],
[2, 1, 0],
];
[0, 1, 0],
[1, 0, 1],
[0, 1, 0],
];
const dist = [
[0, 1, 2],
[1, 0, 1],
[2, 1, 0],
];
const graph = reorder.mat2graph(mat);
assert.equal(graph.nodes().length, 3);
assert.equal(graph.links().length, 2);
Expand Down

0 comments on commit ff5577b

Please sign in to comment.