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 Aug. 4, 2024, 5:26 p.m.