Home
last modified time | relevance | path

Searched refs:expect_match (Results 1 – 25 of 221) sorted by relevance

123456789

/dports/devel/R-cran-covr/covr/tests/testthat/
H A Dtest-codecov.R103 expect_match(res$url, "2"), # nolint
181 expect_match(res$query$build, "1"),
208 expect_match(res$query$job, "10"),
209 expect_match(res$query$pr, ""),
212 expect_match(res$query$build, "100")
238 expect_match(res$query$job, "10"),
239 expect_match(res$query$pr, "5"),
266 expect_match(res$query$build, "5"),
292 expect_match(res$query$build, "5"),
318 expect_match(res$query$build, "5"),
[all …]
/dports/devel/R-cran-testthat/testthat/tests/testthat/
H A Dtest-expect-match.R2 expect_success(expect_match("te*st", "e*", fixed = TRUE))
3 expect_success(expect_match("test", "TEST", ignore.case = TRUE))
7 error <- tryCatch(expect_match("f() test", "f() test"), expectation = function(e) e$message)
12 expect_failure(expect_match("[a]", "[b]"), escape_regex("[a]"), fixed = TRUE)
13 expect_failure(expect_match("[a]", "[b]", fixed = TRUE), "[a]", fixed = TRUE)
19 expect_match(x, 'asdf'),
22 expect_match(err$message, 'is empty')
27 expect_match(letters[1:10], 'asdf'),
30 expect_match(err$message, "does not match")
H A Dtest-compare.R32 expect_match(compare("a", 1L)$message, "character is not integer")
36 expect_match(compare("a", letters)$message, "1 is not 26")
53 expect_match(compare(x1, x2)$message, "names for current")
54 expect_match(compare(x2, x3)$message, "Names: 1 string mismatch")
56 expect_match(compare(x1, x4)$message, "target is NULL")
57 expect_match(compare(x4, x5)$message, "Names: 1 string mismatch")
112 expect_match(compare(1, "a")$message, "double is not character")
116 expect_match(compare(1, c(1, 2))$message, "1 is not 2")
134 expect_match(compare(x1, x2)$message, "names for current")
137 expect_match(compare(x1, x4)$message, "target is NULL")
[all …]
/dports/math/R-cran-dplyr/dplyr/tests/testthat/
H A Dtest-all-equal.r20 expect_match(all_equal(mtcars, mtcars[-1, ]), "Different number of rows")
21 expect_match(all_equal(iris, iris[-1, ]), "Different number of rows")
26 expect_match(
30 expect_match(
34 expect_match(
43 expect_match(
47 expect_match(
56 expect_match(
60 expect_match(
104 expect_match(
[all …]
/dports/textproc/R-cran-rmarkdown/rmarkdown/tests/testthat/
H A Dtest-lua-filters.R22 expect_match(res[grep("HEADER 1", res)+1], "<div class=\"page-break\"></div>")
23 expect_match(res[grep("HEADER 2", res)+1], "<div class=\"page-break\"></div>")
26 expect_match(res[grep("HEADER 1", res)+2], "\\newpage", fixed = TRUE)
27 expect_match(res[grep("HEADER 2", res)+2], "\\pagebreak", fixed = TRUE)
44 expect_match(grep('custom', res, value = TRUE), '<div class="custom"')
47 expect_match(grep('custom', res, value = TRUE), '<div id="id" class="custom">')
50 expect_match(grep('custom', res, value = TRUE), '<div id="id" class="custom">')
53 expect_match(grep('custom', res, value = TRUE), '<div id="id" class="custom">')
56 expect_match(grep('custom', res, value = TRUE), '<div id="id" class="custom">')
111 expect_match(basename(pkg_file_lua()), ".*[.]lua$")
[all …]
/dports/devel/R-cran-fontawesome/fontawesome/tests/testthat/
H A Dtest-fa_icon.R25 expect_match(
31 expect_match(
37 expect_match(
50 expect_match(
55 expect_match(
61 expect_match(
66 expect_match(
73 expect_match(
78 expect_match(
/dports/devel/R-cran-lubridate/lubridate/tests/testthat/
H A Dtest-settors.R71 expect_match(tz(poslt), "GMT")
72 expect_match(tz(posct), "GMT")
73 expect_match(tz(date), "UTC")
79 expect_match(tz(poslt), "GMT")
80 expect_match(tz(posct), "GMT")
81 expect_match(tz(date), "UTC")
199 expect_match(tz(poslt), "GMT")
201 expect_match(tz(date), "UTC")
209 expect_match(tz(date), "UTC")
321 expect_match(tz(date), "UTC")
[all …]
H A Dtest-namespace.R37 expect_match(
45 expect_match( # https://github.com/tidyverse/lubridate/issues/314
50 expect_match( # https://github.com/tidyverse/lubridate/issues/407
54 expect_match( # https://github.com/tidyverse/lubridate/issues/499
/dports/devel/R-cran-callr/callr/tests/testthat/
H A Dtest-error.R83 expect_match(
86 expect_match(
105 expect_match(
108 expect_match(
111 expect_match(
167 expect_match(
170 expect_match(
191 expect_match(
194 expect_match(
215 expect_match(
[all …]
H A Dtest-rcmd.R6 expect_match(rcmd("config", "CC")$stdout, ".")
35 expect_match(
72 expect_match(out$stdout, "No man pages found", useBytes = TRUE)
73 expect_match(out$stderr, "installing help indices")
77 expect_match(
84 expect_match(
/dports/devel/R-cran-cli/cli/tests/testthat/
H A Dtest-status-bar.R13 expect_match(out, "* This is the current status", fixed = TRUE)
123 expect_match(out, "\033[31m", fixed = TRUE)
124 expect_match(out, "\r \r", fixed = TRUE)
136 expect_match(out, str_trim(out2), fixed = TRUE)
221 expect_match(out, "status1 ... failed", fixed = TRUE)
236 expect_match(out2, "status1 ... done", fixed = TRUE)
246 expect_match(out, "status1 ... done")
258 expect_match(out, "status1 ... failed")
311 expect_match(out, "status1 ... done")
314 expect_match(out, "status1 ... done")
[all …]
/dports/devel/R-cran-usethis/usethis/tests/testthat/
H A Dtest-ui.R30 expect_match(ui_path("abc"), "abc'$")
33 expect_match(ui_path("abc/"), "abc/'$")
34 expect_match(ui_path("abc//"), "abc/'$")
39 expect_match(ui_path(tmpdir), "/'$")
40 expect_match(ui_path(paste0(tmpdir, "/")), "[^/]/'$")
41 expect_match(ui_path(paste0(tmpdir, "//")), "[^/]/'$")
H A Dtest-template.R18 expect_match(find_template("travis.yml"), "travis\\.yml$")
19 expect_match(find_template("codecov.yml"), "codecov\\.yml$")
20 expect_match(find_template("cran-comments.md"), "cran-comments\\.md$")
21 expect_match(find_template("template.Rproj"), "template\\.Rproj$")
H A Dtest-pipe.R9 expect_match(desc::desc_get("Imports", proj_get()), "magrittr")
17 expect_match(desc::desc_get("Imports", proj_get()), "magrittr")
19 expect_match(package_doc, "#' @importFrom magrittr %>%", all = FALSE)
26 expect_match(desc::desc_get("Imports", proj_get()), "magrittr")
/dports/devel/R-cran-rversions/rversions/tests/testthat/
H A Dtest-rversions.R15 expect_match(tail(r_versions(FALSE)$version, 1), RE_DASH)
16 expect_match(tail(r_versions(TRUE)$version, 1), RE_DOT)
22 expect_match(r_release(TRUE)$version, RE_DOT)
23 expect_match(r_release(FALSE)$version, RE_DASH)
27 expect_match(r_oldrel(TRUE)$version, RE_DOT)
28 expect_match(r_oldrel(FALSE)$version, RE_DASH)
/dports/graphics/R-cran-DiagrammeR/DiagrammeR/tests/testthat/
H A Dtest-colorize_nodes_edges.R49 expect_match(
81 expect_match(
122 expect_match(
152 expect_match(
182 expect_match(
240 expect_match(
247 expect_match(
275 expect_match(
314 expect_match(
351 expect_match(
/dports/graphics/R-cran-pROC/pROC/tests/testthat/
H A Dtest-roc.test.R30 expect_match(t1$method, "DeLong")
31 expect_match(t1$method, "correlated")
39 expect_match(t2$method, "DeLong")
40 expect_match(t2$method, "correlated")
48 expect_match(t3$method, "DeLong")
49 expect_match(t3$method, "correlated")
78 expect_match(t1up$method, "DeLong")
83 expect_match(t2up$method, "DeLong")
88 expect_match(t3up$method, "DeLong")
117 expect_match(t1gt$method, "DeLong")
[all …]
/dports/devel/R-cran-diffobj/diffobj/tests/
H A Dtest-s4.Rout.save24 > # expect_match(diffobj:::valid_dat("hello"), "should be a list")
28 > # expect_match(diffobj:::valid_dat(unname(D0)), "should have names")
31 > # expect_match(diffobj:::valid_dat(D1), "should have equal length")
34 > # expect_match(diffobj:::valid_dat(D2), "should be character")
37 > # expect_match(diffobj:::valid_dat(D3), "should be integer")
40 > # expect_match(diffobj:::valid_dat(D4), "should be list")
43 > # expect_match(diffobj:::valid_dat(D5), "not in expected format")
46 > # expect_match(diffobj:::valid_dat(D6), "with all values between")
49 > # expect_match(diffobj:::valid_dat(D7), "should be logical")
/dports/math/R-cran-wk/wk/tests/testthat/
H A Dtest-deprecated.R30 expect_match(wkb_format(bad_wkb), "!!!")
31 expect_match(wkt_format("POINT ENTPY"), "!!!")
41 expect_match(wkb_problems(list(point[1:5])), "Unexpected end of buffer")
45 expect_match(wkb_problems(list(point_bad_type)), "Unrecognized geometry type code")
50 expect_match(wkt_problems("sss"), "Expected geometry type or")
/dports/devel/R-cran-repr/repr/tests/testthat/
H A Dtest_repr_htmlwidget.r11 expect_match(r, "x<span class='match'>y<\\/span>", fixed = TRUE, all = FALSE)
19expect_match(r, '<script title="htmlwidgets" src="data:application/javascript', fixed = TRUE, all …
31 expect_match(r, '<meta charset="utf-8">\n\t\t<script', fixed = TRUE, all = FALSE)
34 expect_match(r, '<meta charset="utf-8">\n\t\t\n', fixed = TRUE, all = FALSE) #no deps here
43 expect_match(r, '<script title="htmlwidgets" src="data:')
/dports/devel/RStudio/rstudio-2021.09.1-372/dependencies/common/plumber/tests/testthat/
H A Dtest-default-handlers.R7 expect_match(val$error, "404")
8 expect_match(val$error, "Not Found")
15 expect_match(val$error, "500")
16 expect_match(val$error, "Internal server error")
24 expect_match(val$error, "Internal error")
/dports/devel/R-cran-rcmdcheck/rcmdcheck/tests/testthat/
H A Dtest-rcmdcheck.R29 expect_match(bad1$warnings[1], "Non-standard license specification")
87 expect_match(res$warnings[1], "Non-standard license specification")
88 expect_match(res$description, "Advice on R package building")
109 expect_match(bad2$errors[1], "Installation failed")
134 expect_match(bad1$warnings[1], "Non-standard license specification")
142 expect_match(out, "Non-standard license specification")
156 expect_match(out, "R add-on package builder")
169 expect_match(out, "R add-on package check")
/dports/textproc/R-cran-hunspell/hunspell/tests/testthat/
H A Dtest-encodings.R52 expect_match(hunspell_stem(str2, dict = "russian-aot")[[1]][1], stemstr)
53 expect_match(hunspell_stem(str2, dict = "ru_RU")[[1]][1], stemstr)
54 expect_match(hunspell_suggest(str2, dict = "russian-aot")[[1]][1], stemstr)
55 expect_match(hunspell_suggest(str2, dict = "ru_RU")[[1]][1], stemstr)
56 expect_match(hunspell_analyze(str2, dict = "russian-aot")[[1]][1], stemstr)
57 expect_match(hunspell_analyze(str2, dict = "ru_RU")[[1]][1], stemstr)
/dports/devel/R-cran-testthat/testthat/man/
H A Dexpect_match.Rd3 \name{expect_match}
4 \alias{expect_match}
8 expect_match(
66 \code{expect_match()} is a wrapper around \code{\link[=grepl]{grepl()}}. See its documentation for
78 expect_match("Testing is fun", "fun")
79 expect_match("Testing is fun", "f.n")
83 expect_match("Testing is fun", "horrible")
86 expect_match(character(), ".")
/dports/devel/R-cran-pkgcache/pkgcache/tests/async/
H A Dtest-errors.R9 catch(error = ~ expect_match(.$message, "ohno!"))
24 catch(error = ~ expect_match(.$message, "ohno!"))$
86 expect_match(conditionMessage(err), "foobar")
96 expect_match(conditionMessage(err), "foobar")
107 expect_match(conditionMessage(err), "foobar")
119 expect_match(conditionMessage(err), "foobar")

123456789