tests/testthat/test-test-xyz.R

df <- data.frame(V1=runif(2,  0,1), V2=runif(2,  0,5), V3=runif(2,  0,30))

test_that("data2cielab works", {

  data_with_colors <- data2cielab(df, Wb=1.2, S=1.6)
  suppressWarnings(
  expect_that( ncol(data_with_colors), equals(2) )
  )
})

Try the ucie package in your browser

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

ucie documentation built on June 21, 2022, 1:05 a.m.