dwww Home | Show directory contents | Find package

test_that("regular function `a` works as expected", {
  expect_equal(a(1), 1)
  expect_equal(a(2), 2)
  expect_equal(a(3), 2)
  expect_equal(a(4), 2)
  expect_equal(a(0), 1)
})

test_that("TestR6 class can be instantiated", {
  t1 <- TestR6$new() # nolint
})

test_that("TestR6 Methods can be evaluated", {
  t1 <- TestR6$new() # nolint

  t1$show()
  print(t1$print2())
})

Generated by dwww version 1.15 on Tue Jul 2 08:57:33 CEST 2024.