Skip to content

Commit

Permalink
update unit tests about BactrianScaleOperator #128
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Sep 13, 2024
1 parent c79aff1 commit d6c0845
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public void testMascot() {
xml.contains("A/Waikato/5/2000|CY011960|2000.661202|New_Zealand=New_Zealand") &&
xml.contains("<typeTrait"), "Trait set" );

// 7 ScaleOperator, incl. tree
assertEquals(7, xml.split("BactrianScaleOperator", -1).length - 1, "BactrianScaleOperator" );
// 6 ScaleOperator, Tree scaled is replaced by BICEPS
assertEquals(6, xml.split("BactrianScaleOperator", -1).length - 1, "BactrianScaleOperator" );

assertTrue(xml.contains("Exchange") && xml.contains("BactrianSubtreeSlide") &&
xml.contains("BactrianNodeOperator") && xml.contains("WilsonBalding"), "Tree Operator" );
Expand Down
4 changes: 2 additions & 2 deletions lphybeast/src/test/java/lphybeast/H5N1TutorialTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public void testDPG() {

assertTrue(xml.contains("BitFlipOperator") && xml.contains("parameter=\"@I\""), "I.bitFlip Operator" );

// 6 ScaleOperator, incl. tree
assertEquals(6, xml.split("BactrianScaleOperator", -1).length - 1,
// 5 ScaleOperator, Tree scaled is replaced by BICEPS
assertEquals(5, xml.split("BactrianScaleOperator", -1).length - 1,
"BactrianScaleOperator" );

assertTrue(xml.contains("Exchange") && xml.contains("BactrianSubtreeSlide") &&
Expand Down
4 changes: 2 additions & 2 deletions lphybeast/src/test/java/lphybeast/RSV2TutorialTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public void testRSV2() {
// 3 TreeLikelihood
assertEquals(3,xml.split("ThreadedTreeLikelihood", -1).length - 1, "Tree Likelihood" );

// 5 ScaleOperator, incl. tree
assertEquals(5, xml.split("BactrianScaleOperator", -1).length - 1, "BactrianScaleOperator" );
// 4 ScaleOperator, Tree scaled is replaced by BICEPS
assertEquals(4, xml.split("BactrianScaleOperator", -1).length - 1, "BactrianScaleOperator" );

assertTrue(xml.contains("Exchange") && xml.contains("BactrianSubtreeSlide") && xml.contains("BactrianNodeOperator") &&
xml.contains("WilsonBalding"), "Tree Operator" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public void testBS() {
xml.contains("name=\"S\">2.0</parameter>"), "gamma shape prior" );
assertTrue(xml.contains("gammaCategoryCount=\"4\"") && xml.contains("shape=\"@gamma\""), "SiteModel" );

// 4 ScaleOperator, incl. tree
assertEquals(4, xml.split("BactrianScaleOperator", -1).length - 1,
// 3 ScaleOperator, Tree scaled is replaced by BICEPS
assertEquals(3, xml.split("BactrianScaleOperator", -1).length - 1,
"BactrianScaleOperator" );

assertTrue(xml.contains("Exchange") && xml.contains("BactrianSubtreeSlide") &&
Expand Down

0 comments on commit d6c0845

Please sign in to comment.