Browse code

more on robustifuing tests

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/OncoSimulR@109072 bc3139a8-67e5-0310-9ffc-ced21a209358

Ramon Diaz-Uriarte authored on 01/10/2015 15:37:01
Showing 2 changed files

... ...
@@ -28,6 +28,8 @@ test_that("oncoSimulSample success when no onlyCancer", {
28 28
 
29 29
 test_that("oncoSimulSample exits with minimal num tries", {
30 30
     p5 <- oncoSimulSample(nindiv, p701,
31
+                          initSize = 10,
32
+                          finalTime = 50,
31 33
                           max.num.tries = nindiv,
32 34
                           onlyCancer = TRUE)
33 35
     expect_true(p5$HittedMaxTries)
... ...
@@ -37,7 +39,9 @@ test_that("oncoSimulSample exits with minimal num tries", {
37 39
 
38 40
 test_that("oncoSimulSample exits with small num tries", {
39 41
     p6 <- oncoSimulSample(nindiv, p701,
40
-                          max.num.tries = nindiv + 2,
42
+                          initSize = 10,
43
+                          finalTime = 50,
44
+                          max.num.tries = nindiv + 1,
41 45
                           onlyCancer = TRUE)
42 46
     expect_true(p6$HittedMaxTries)
43 47
     expect_true(is.na(p6$popSummary))
... ...
@@ -1,15 +1,15 @@
1 1
 \usepackage[%
2
-		shash={d3b5a5a},
3
-		lhash={d3b5a5acc1dd65694d086183fbf8b7fd2919c025},
2
+		shash={2119409},
3
+		lhash={2119409e5d31dac53d3c0b23928336e598abaef8},
4 4
 		authname={ramon diaz-uriarte (at Bufo)},
5 5
 		authemail={rdiaz02@gmail.com},
6 6
 		authsdate={2015-10-01},
7
-		authidate={2015-10-01 14:42:40 +0200},
8
-		authudate={1443703360},
7
+		authidate={2015-10-01 17:30:24 +0200},
8
+		authudate={1443713424},
9 9
 		commname={ramon diaz-uriarte (at Bufo)},
10 10
 		commemail={rdiaz02@gmail.com},
11 11
 		commsdate={2015-10-01},
12
-		commidate={2015-10-01 14:42:40 +0200},
13
-		commudate={1443703360},
12
+		commidate={2015-10-01 17:30:24 +0200},
13
+		commudate={1443713424},
14 14
 		refnames={ (HEAD -> master)}
15 15
 	]{gitsetinfo}
16 16
\ No newline at end of file