Skip to content

Commit 60aa174

Browse files
committed
tests fix
1 parent 3a1df56 commit 60aa174

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/formats-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ tape("Handle Newick strings with spaces", function(test) {
9494
// This would be identical to the original Newick string, but phylotree.js coerces
9595
// lengths to 1 (see https://github.com/veg/phylotree.js/issues/440). So we expect
9696
// all lengths to be set to 1 on export.
97-
test.equal(phylo.getNewick(), "('Alpha beta':1,('Alpha gamma':1,('Delta''s epsilon':1,'Epsilon zeta ''alphonso''':1,'test''s':1):1):1):1;");
97+
test.equal(phylo.getNewick(), '(\'Alpha beta\':1,(\'Alpha gamma\':1,(\'Delta\'\'s epsilon\':1,\'Epsilon zeta \'\'alphonso\'\':1,\'test\'\'s\':1):1):1):1;');
9898

9999
test.end();
100100
});

test/neighbor-join-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tape("neighbor joining", function(test) {
1313

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

test/phylotree-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ tape("phylotree newick export", function(test) {
7070

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

7676
});

0 commit comments

Comments
 (0)