tests/testthat/test-python-strings.R

context("strings")

test_that("Unicode strings are handled by py_str", {
  skip_if_no_python()
  skip_on_cran()
  skip_on_os("windows")
  main <- py_run_string("x = u'\\xfc'", convert = FALSE)
  expect_equal(py_str(main$x), "ΓΌ")
})
merlingrace/reticulate1 documentation built on Nov. 4, 2019, 6:25 p.m.