[d9ee58]: / tests / testthat / test-utils-graphics.R

Download this file

17 lines (15 with data), 333 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Testing postscript font name selector
test_that("get_base_family returns a string", {
checkmate::expect_string(
get_base_family(),
null.ok = FALSE,
na.ok = FALSE
)
})
test_that("get_base_family returns either Arial or sans", {
expect_match(
get_base_family(),
"([Aa]rial)|(sans)",
perl = TRUE
)
})