mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 03:40:48 +01:00
(v1.5.0.9034) unit test fix
This commit is contained in:
1 parent
1bbf409fe5
commit
450bbe5fb7
17 files changed
+49
-35
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user