tests/testthat/test-ornament.R
raw| 1 | test_that("ornament", { |
| 2 | expect_snapshot({ |
| 3 | new_ornament(c("abc", "de")) |
| 4 | new_ornament(c("abc", "de"), align = "right") |
| 5 | new_ornament(c("abc", "de"), width = 5, align = "right") |
| 6 | format(new_ornament(c("abc", "de"))) |
| 7 | format(new_ornament(c("abc", "de")), width = 5) |
| 8 | }) |
| 9 | }) |
| 10 | |
| 11 | test_that("vertical", { |
| 12 | expect_snapshot({ |
| 13 | as_glue(c("abc", "de")) |
| 14 | }) |
| 15 | }) |