...
|
...
|
@@ -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
|
|