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)
HughParsonage/healthyAddress documentation built on Jan. 11, 2025, 12:11 a.m.