1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 16:42:10 +02:00

(v1.4.0.9008) like variations

This commit is contained in:
2020-10-26 12:23:03 +01:00
parent f720c9ba0b
commit 760d69a3e0
64 changed files with 919 additions and 582 deletions

View File

@ -28,8 +28,13 @@ context("like.R")
test_that("`like` works", {
skip_on_cran()
expect_true(sum("test" %like% c("^t", "^s")) == 1)
expect_true("test" %like% "test")
expect_true("test" %like% "TEST")
expect_false("test" %like_case% "TEST")
expect_false("test" %not_like% "test")
expect_true("test" %not_like_case% "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))