tests/testthat/test-style-var.R

test_that("style works", {
  x1 <- style("foobar", bold)
  x2 <- style("foobar", "bold")
  x3 <- bold("foobar")

  expect_equal(x1, x2)
  expect_equal(x2, x3)
})
gaborcsardi/crayon documentation built on June 12, 2025, 4:27 p.m.