tests/testthat/test-address-parts.R

test_that("returns local part of email address", {
  expect_equal(local("alice@example.com"), "alice")
})

test_that("returns domain of email address", {
  expect_equal(domain("alice@example.com"), "example.com")
})
datawookie/emayili documentation built on Feb. 10, 2025, 8:23 p.m.