Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/testthat/test-deparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,9 @@ test_that("backslashes in strings are properly escaped (#1160)", {
})

test_that("formulas are deparsed (#1169)", {
# test output differs slightly with/without pillar
skip_if_not_installed("pillar")

# Evaluated formulas are treated as objects
expect_equal(
expr_deparse(~foo),
Expand All @@ -868,6 +871,9 @@ test_that("formulas are deparsed (#1169)", {
})

test_that("matrices and arrays are formatted (#383)", {
# test output differs slightly with/without pillar
skip_if_not_installed("pillar")

mat <- matrix(1:3)
expect_equal(as_label(mat), "<int[,1]>")
expect_equal(expr_deparse(mat), "<int[,1]: 1L, 2L, 3L>")
Expand Down