tests/testthat/test-utils.R

test_that("Control the basic behaviour of .format_ini_rhs()",{
  
  res <- .format_ini_rhs(value = TRUE)
  expect_true(res == "true")
  
  res <- .format_ini_rhs(value = FALSE)
  expect_true(res == "false")
  
  res <- .format_ini_rhs(value = "fake_value")
  expect_true(res == "fake_value")
  
  res <- .format_ini_rhs(value = letters[seq(1,5)])
  expect_true(res == paste(letters[seq(1,5)], collapse = ", "))  
})

Try the antaresEditObject package in your browser

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

antaresEditObject documentation built on April 4, 2025, 4:25 a.m.