inst/tinytest/test_which_first_strstr.R

library(tinytest)
expect_equal(healthyAddress:::which_first_strstr(c(NA, "", "AA", "A,A"), ",A"), 4L)
expect_equal(healthyAddress:::which_first_strstr(c(NA, "", "AA", "A,A"), ",AA"), 0L)

Try the healthyAddress package in your browser

Any scripts or data that you put into this service are public.

healthyAddress documentation built on April 12, 2025, 1:28 a.m.