Skip to content

Commit

Permalink
clean up the required tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tttianhao committed Nov 10, 2018
1 parent 125b8e5 commit 05c5551
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,5 +454,9 @@ module.exports = {
acceptReject,
logHistory,
toGraph,
shortPath
shortPath,
markovChain,
convert,
expectedEdge,
topGraph
};
4 changes: 3 additions & 1 deletion test/mcmc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('mcmc', () => {
);
});

it('does it computes acceptance ratio correctly?', () => {
it('does it computes whether accept or reject correctly?', () => {
var G = mcmc.initialGraph(4, [[0, 0], [1, 0], [1, 1], [0, 1]]);
var G1 = mcmc.initialGraph(4, [[0, 0], [1, 0], [1, 1], [0, 1]]);
G1.addWeightedEdgesFrom([[0, 2, Math.sqrt(2)]]);
Expand All @@ -188,4 +188,6 @@ describe('mcmc', () => {
assert.equal(G.nodes().length, 4);
assert.equal(G.adj.get(0).get(1).weight, 1);
});

// markovChain, expectetEdge, shorPath, convert, topGraph
});

0 comments on commit 05c5551

Please sign in to comment.