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-pkgs/crayon documentation built on Nov. 9, 2023, 4:33 p.m.