tests/testthat/test-unf6-asis.R

context("UNFv6: AsIs")

test_that("AsIs vectors converted to character", {
    expect_true(as.unfvector(I(1)) == "1")
    expect_true(identical(unf(I(1))$unf, unf("1")$unf))
})

Try the UNF package in your browser

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

UNF documentation built on April 13, 2022, 5:06 p.m.