Browse Source

update older testthat style

pull/21/head
Garrick Aden-Buie 6 years ago
parent
commit
ca6d257ba3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tests/testthat/test-regex.R

+ 3
- 3
tests/testthat/test-regex.R View File

text <- "ab ab" text <- "ab ab"
pattern <- "(a)(b)" pattern <- "(a)(b)"
m <- regex(text, pattern, global = TRUE) m <- regex(text, pattern, global = TRUE)
expect_is(m[[1]]$idx$start, "integer")
expect_is(m[[1]]$idx$end, "integer")
expect_is(m[[1]]$idx$group, "integer")
expect_type(m[[1]]$idx$start, "integer")
expect_type(m[[1]]$idx$end, "integer")
expect_type(m[[1]]$idx$group, "integer")
}) })


test_that("length-zero match is NULL", { test_that("length-zero match is NULL", {

Loading…
Cancel
Save