tests/testthat/test-parsing.R

test_that("trimmed before NA detection", {
  expect_equal(parse_logical(c(" TRUE ", "FALSE", " NA ")), c(TRUE, FALSE, NA))
})
tidyverse/readr documentation built on Jan. 27, 2024, 11:59 p.m.