File: test_getOperatingSystem.R

package info (click to toggle)
r-cran-bbmisc 1.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,256 kB
  • sloc: ansic: 176; sh: 9; makefile: 5
file content (10 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
context("getOperatingSystem")

test_that("getOperatingSystem", {
  x = getOperatingSystem()
  expect_true(is.character(x) && length(x) == 1 && nchar(x) > 0)
  x = isWindows()
  expect_true(is.logical(x) && length(x) == 1 && !is.na(x))
  x = isUnix()
  expect_true(is.logical(x) && length(x) == 1 && !is.na(x))
})