tests/testthat/test-mymemory_translate.R

test_that("translation works", {
  expect_equal(
    mymemory_translate(
      text = "Hello",
      target_language = "nl",
      source_language = "en"
    ),
    "Hallo"
  )
})

Try the polyglotr package in your browser

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

polyglotr documentation built on Sept. 11, 2024, 6:35 p.m.