tests/testthat/test-log.R

test_that("log can set and get", {
  reset_log()
  add_to_log(
    test = 1,
    attempt = 1,
    reason = "testing logs"
  )
  expected <- tibble::tibble(
    test = 1,
    attempt = 1,
    reason = "testing logs",
    details = NA_character_
  )
  expect_equal(get_log(), expected)
})
datr-studio/bladerunr documentation built on April 12, 2022, 6:19 p.m.