Browse code

3.1.2, better test of poset transformation

ramon diaz-uriarte (at Phelsuma) authored on 06/10/2021 20:18:41
Showing 3 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 Package: OncoSimulR
2 2
 Type: Package
3 3
 Title: Forward Genetic Simulation of Cancer Progression with Epistasis 
4
-Version: 3.1.1
4
+Version: 3.1.2
5 5
 Date: 2021-10-06
6 6
 Authors@R: c(
7 7
 	      person("Ramon", "Diaz-Uriarte", role = c("aut", "cre"),	
... ...
@@ -1,3 +1,6 @@
1
+Changes in version 3.1.2 (2021-10-06):
2
+	- Better test of poset transformation
3
+	
1 4
 Changes in version 3.1.1 (2021-10-06):
2 5
 	- XOR, AND, OR dependencies: plots of DAGs honor all possible values.
3 6
 	- Few miscell minor changes.
... ...
@@ -163,14 +163,14 @@ test_that("to rT from poset, through adjmat with and w.o. root",
163 163
               ##     OncoSimulR:::adjmat.to.restrictTable(
164 164
               ##         OncoSimulR:::posetToGraph(p5, names = 0:5, addroot = TRUE, type = "adjmat"),
165 165
               ##         root = TRUE))
166
-              expect_true(all.equal(
167
-                  OncoSimulR:::adjmat.to.restrictTable(
168
-                      OncoSimulR:::posetToGraph(p5, names = 1:5, addroot = FALSE, type = "adjmat"),
169
-                      root = FALSE),
170
-                  OncoSimulR:::adjmat.to.restrictTable(
171
-                      OncoSimulR:::posetToGraph(p5, names = 0:5, addroot = TRUE, type = "adjmat"),
172
-                      root = TRUE)
173
-              ))
166
+              ## cleaner
167
+              aa <- OncoSimulR:::adjmat.to.restrictTable(
168
+                                     OncoSimulR:::posetToGraph(p5, names = 1:5, addroot = FALSE, type = "adjmat"),
169
+                                     root = FALSE)
170
+              bb <- OncoSimulR:::adjmat.to.restrictTable(
171
+                                     OncoSimulR:::posetToGraph(p5, names = 0:5, addroot = TRUE, type = "adjmat"),
172
+                                     root = TRUE)
173
+              expect_equal(aa, bb)
174 174
           })
175 175
 
176 176