tests/testthat/test-get_is_os_name.R

library(SticsRFiles)


context("Is OS name")

test_that("Is OS name", {
  expect_equal(length(is_os_name()), 4)
  expect_type(is_os_name("windows"), "logical")
  expect_type(is_os_name("linux"), "logical")
  expect_type(is_os_name("mac"), "logical")

})

Try the SticsRFiles package in your browser

Any scripts or data that you put into this service are public.

SticsRFiles documentation built on Sept. 12, 2024, 7:41 a.m.