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 Nov. 10, 2023, 9:15 a.m.