mirror of
https://github.com/msberends/AMR.git
synced 2025-12-13 03:10:23 +01:00
(v1.3.0.9023) optimalisation
This commit is contained in:
@@ -27,14 +27,14 @@ test_that("rsi works", {
|
||||
expect_true(as.rsi("S") < as.rsi("I"))
|
||||
expect_true(as.rsi("I") < as.rsi("R"))
|
||||
expect_true(is.rsi(as.rsi("S")))
|
||||
|
||||
|
||||
# print plots, should not raise errors
|
||||
barplot(as.rsi(c("S", "I", "R")))
|
||||
plot(as.rsi(c("S", "I", "R")))
|
||||
print(as.rsi(c("S", "I", "R")))
|
||||
expect_success(x <- barplot(as.rsi(c("S", "I", "R"))))
|
||||
expect_success(x <- plot(as.rsi(c("S", "I", "R"))))
|
||||
expect_success(x <- print(as.rsi(c("S", "I", "R"))))
|
||||
|
||||
expect_equal(as.character(as.rsi(c(1:3))), c("S", "I", "R"))
|
||||
|
||||
|
||||
expect_equal(suppressWarnings(as.logical(as.rsi("INVALID VALUE"))), NA)
|
||||
|
||||
expect_equal(summary(as.rsi(c("S", "R"))),
|
||||
|
||||
Reference in New Issue
Block a user