Skip to content

Commit

Permalink
Add test for #813 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Jan 31, 2024
1 parent b1bae80 commit 5d4d427
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-bugfix.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
test_that("Issue #812: table without header works in collapse_rows", {
tab <- kbl(mtcars[1:3, 1:4], col.names = NULL,
format = "html", booktabs = TRUE) |>
kable_styling(full_width=TRUE) |>
collapse_rows(columns=2:3)
expect_s3_class(tab, "knitr_kable")
})

test_that("Issue #806: custom rule widths", {
expect_snapshot(
kbl(mtcars[1:3, 1:4],
Expand Down

0 comments on commit 5d4d427

Please sign in to comment.