tests/testthat/test_generate_r_environ.R

#Ok
test_that('Sem parametros na função',{

  expect_error(generate_r_environ())

})
#Ok
test_that('Apenas um parametro',{

  expect_error(generate_r_environ('a'))

})
#Ok
test_that('Generate environ',{

  expect_error(generate_r_environ('a','b'))

})
#Falha
test_that('Todos os parametro',{

  expect_error(generate_r_environ('a','b','c'))

})
4intelligence/blob-4dashes-lib-r documentation built on Dec. 17, 2021, 6:38 a.m.