Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenweaver committed Jan 17, 2024
1 parent 3a1df56 commit 60aa174
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/formats-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ tape("Handle Newick strings with spaces", function(test) {
// This would be identical to the original Newick string, but phylotree.js coerces
// lengths to 1 (see https://github.com/veg/phylotree.js/issues/440). So we expect
// all lengths to be set to 1 on export.
test.equal(phylo.getNewick(), "('Alpha beta':1,('Alpha gamma':1,('Delta''s epsilon':1,'Epsilon zeta ''alphonso''':1,'test''s':1):1):1):1;");
test.equal(phylo.getNewick(), '(\'Alpha beta\':1,(\'Alpha gamma\':1,(\'Delta\'\'s epsilon\':1,\'Epsilon zeta \'\'alphonso\'\':1,\'test\'\'s\':1):1):1):1;');

test.end();
});
2 changes: 1 addition & 1 deletion test/neighbor-join-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tape("neighbor joining", function(test) {

const nodeList = ["A","B","C","D","E"];
const nj = phylotree.neighborJoining(D, nodeList.length, nodeList);
const expectedTree = "((((A:2,B:3)InternalNode0:3,C:4)InternalNode1:2,D:2)InternalNode2:0.5,E:0.5):0;";
const expectedTree = '((((\'A\':2,\'B\':3)\'InternalNode0\':3,\'C\':4)\'InternalNode1\':2,\'D\':2)\'InternalNode2\':0.5,\'E\':0.5):0;'
test.equal(nj.getNewick(), expectedTree);
test.end();

Expand Down
2 changes: 1 addition & 1 deletion test/phylotree-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ tape("phylotree newick export", function(test) {

let newick_string = String(fs.readFileSync(__dirname + "/data/MERS.txt"));
let phylo = new phylotree.phylotree(newick_string);
test.equal(phylo.getNewick().length, 18350);
test.equal(phylo.getNewick().length, 18898);
test.end();

});
Expand Down

0 comments on commit 60aa174

Please sign in to comment.