tests/testthat/test-is_bin_path.R

test_that("use", {
  expect_true(is_bin_path("beast"))
  expect_true(is_bin_path("BEAST.exe"))
  expect_true(is_bin_path("/path with spaces/another one/beast"))
  expect_false(is_bin_path("beast.exe"))
  expect_false(is_bin_path("launcher.jar"))
  expect_true(is_bin_path(get_default_beast2_bin_path()))
  expect_false(is_bin_path(get_default_beast2_jar_path()))
  expect_false(is_bin_path("nonsense"))
  expect_false(is_bin_path(NA))
  expect_false(is_bin_path(NULL))
})
richelbilderbeek/beastier documentation built on Nov. 8, 2023, 9:29 p.m.