tests/testthat/test-ubci_index_options.R

context("test-ubci_index_options")

test_that("index chk", {
  tem <- ubci_index_options()
  expect_equal(tem$index[1], "UBMI")
})

test_that("index colume chk", {
  tem <- ubci_index_options()
  col <- c("index","name","cate","smry")
  expect_equal(names(tem), col)
})

test_that("lang ko chk", {
  tem <- ubci_index_options("ko")
  expect_gt(nchar(tem$smry[7]), 50)
})

Try the ubci package in your browser

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

ubci documentation built on June 11, 2019, 1:02 a.m.