mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
addins and small improvements to microorganisms dataset
This commit is contained in:
1 parent
10fce8382c
commit
34ee0247ac
18 files changed
+284
-58
No files matched your search
@@ -0,0 +1,10 @@
|
||||
context("like.R")
|
||||
|
||||
test_that("`like` works", {
|
||||
expect_true(suppressWarnings("test" %like% c("^t", "^s")))
|
||||
expect_true("test" %like% "test")
|
||||
expect_true("test" %like% "TEST")
|
||||
expect_true(as.factor("test") %like% "TEST")
|
||||
expect_identical(factor(c("Test case", "Something different", "Yet another thing")) %like% c("case", "diff", "yet"),
|
||||
c(TRUE, TRUE, TRUE))
|
||||
})
|
||||
Reference in new issue
Block a user