tests/testthat/test-check_output.R

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

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

Try the izmir package in your browser

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

izmir documentation built on March 7, 2023, 6:44 p.m.