tests/testthat/test-c.oin.R

context("c.oin")

test_that(desc="class: oin",{
  x <- as.oin("556000-4615")
  y <- as.oin(c("556000-4615", "232100-0156", "802002-4280"))
  xy <- c(x, y)
  expect_is(xy, class = "oin")
  expect_equal(as.character(xy), c("556000-4615", "556000-4615", "232100-0156", "802002-4280"))
})

Try the sweidnumbr package in your browser

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

sweidnumbr documentation built on March 31, 2020, 5:24 p.m.