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)
  
})
r-lib/crayon documentation built on Nov. 11, 2023, 6:09 p.m.