Debian Codegraph @

tests/testthat/test-tbl-format-header.R

raw
1 test_that("tbl_format_header() results", {
2 local_unknown_rows()
3 local_foo_tbl()
4
5 expect_snapshot({
6 tbl_format_header(tbl_format_setup(as_tbl(mtcars), width = 80))
7
8 tbl_format_header(tbl_format_setup(as_unknown_rows(trees), width = 30, n = 10))
9
10 "Narrow"
11 tbl_format_header(tbl_format_setup(as_tbl(mtcars), width = 10))
12
13 "Custom tbl_sum()"
14 tbl_format_header(tbl_format_setup(new_foo_tbl(), width = 30))
15
16 "Focus columns"
17 tbl_format_header(tbl_format_setup(new_tbl(trees, pillar_focus = "Volume"), width = 30))
18 })
19 })