tests/testthat/test-is_on_peregrine.R

test_that("use", {
  # Cannot check if this is TRUE or FALSE: it depends
  # where the test if run
  expect_true(beautier::is_one_bool(is_on_peregrine()))

  # Travis is not Peregrine
  if (beautier::is_on_travis()) {
    expect_false(is_on_peregrine())
  }
  # AppVeyor is not Peregrine
  if (beautier::is_on_appveyor()) {
    expect_false(is_on_peregrine())
  }
})
richelbilderbeek/peregrine documentation built on Jan. 3, 2024, 7:42 p.m.