inst/tinytest/test_gh_issue_78.R

# x <- "IÑIGO", we avoid problems on Windows here.
x <- intToUtf8(c(73, 209,  73,  71,  79))

expect_equal(stringdist("INIGO", x, method="lv", useBytes=FALSE),1)
expect_equal(amatch("INIGO", x, method="lv",maxDist=1),1)

Try the stringdist package in your browser

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

stringdist documentation built on Nov. 10, 2022, 5:08 p.m.