dwww Home | Show directory contents | Find package

test_that("encoding conversion works", {
  skip_on_os("windows")

  x <- rawToChar(as.raw(177))
  expect_equal(str_conv(x, "latin1"), "±")
})

test_that("check encoding argument", {
  expect_error(str_conv("A", c("ISO-8859-1", "ISO-8859-2")), "single string")
})

Generated by dwww version 1.15 on Thu May 23 08:02:22 CEST 2024.