tests/testthat/test-all_identical.R

test_that("all_identical works", code = {
  expect_true(all_identical(list(a=1, b=1, c=1, d=1)))
  expect_true(all_identical(list(1, 1, 1)))
  expect_error(all_identical(list(a=1, b=1, c=1, d=2)))
  expect_error(all_identical(list(1, 1, 2)))
})
aljabadi/Altools documentation built on Jan. 17, 2022, 8:55 a.m.