tests/testthat/test-check_output.R

#context("check-output") #Our test file is called test-check_output.R
library(testthat) #load testthat package
library(konya)

test_that("encoding_data returns a list",{
  df<-data.frame(name = c("Konya","Buyuksehir"))
  result<-encoding_data(df)
  expect_type(result,"list")
})

Try the konya package in your browser

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

konya documentation built on Sept. 8, 2023, 5:26 p.m.