(v1.5.0.9034) unit test fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-03-07 21:16:45 +01:00
1 parent 1bbf409fe5
commit 450bbe5fb7
17 files changed
+49 -35

No files matched your search

+2 -2
View File
@@ -121,10 +121,10 @@ random_exec <- function(type, size, mo = NULL, ab = NULL) {
}
out <- as.mic(sample(set_range, size = size, replace = TRUE))
# 50% chance that lowest will get <= and highest will get >=
if (runif(1) > 0.5) {
if (stats::runif(1) > 0.5) {
out[out == min(out)] <- paste0("<=", out[out == min(out)])
}
if (runif(1) > 0.5) {
if (stats::runif(1) > 0.5) {
out[out == max(out)] <- paste0(">=", out[out == max(out)])
}
return(out)