tests/testthat/test-utf8.R

test_that("parseUTF8 has same srcfile attribute as file arg input", {
  filename <- test_path("files/plumber.R")
  expect_equal(attr(parseUTF8(filename), "srcfile")$filename, filename)
})
trestletech/plumber documentation built on May 6, 2024, 6:17 p.m.