tests/testthat/test-multi-byte.R

test_that("multi-byte reading works with unicode delimiters and UTF-8 encoding", {
  test_vroom(
    test_path("multi-byte-ascii.txt"),
    delim = "||",
    equals = tibble::tibble(
      id = 1:3,
      name = c("ed", "leigh", "nathan"),
      age = c(36, NA, 14)
    )
  )
})

test_that("multi-byte reading works with unicode delimiters and UTF-8 encoding", {
  skip_on_os("solaris")

  test_vroom(
    test_path("multi-byte-unicode.txt"),
    delim = "\U2764",
    equals = tibble::tibble(
      id = 1:3,
      name = c("ed", "leigh", "nathan"),
      age = c(36, NA, 14)
    )
  )
})

Try the vroom package in your browser

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

vroom documentation built on Jan. 27, 2026, 5:09 p.m.