tests/testthat/test-shape_string.R

test_that("empty string input returns empty results", {
  expect_equal(nrow(shape_string(character())$shape), 0)
  expect_equal(length(string_width(character())), 0)
})

Try the systemfonts package in your browser

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

systemfonts documentation built on Nov. 21, 2026, 9:06 a.m.