mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
Try to support older R versions
This commit is contained in:
1 parent
d79132b29f
commit
e7396b8f39
7 files changed
+23
-23
No files matched your search
@@ -19,8 +19,8 @@ test_that("size format works", {
|
||||
})
|
||||
|
||||
test_that("functions missing in older R versions work", {
|
||||
expect_equal(strrep("A", 5), "AAAAA")
|
||||
expect_equal(strrep(c("A", "B"), c(5, 2)), c("AAAAA", "BB"))
|
||||
expect_equal(strrep2("A", 5), "AAAAA")
|
||||
expect_equal(strrep2(c("A", "B"), c(5, 2)), c("AAAAA", "BB"))
|
||||
expect_equal(trimws(" test "), "test")
|
||||
expect_equal(trimws(" test ", "l"), "test ")
|
||||
expect_equal(trimws(" test ", "r"), " test")
|
||||
|
||||
Reference in new issue
Block a user