Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 1, 2023
1 parent 61c6843 commit d7da1d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/testthat/test-pipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ skip_if(getRversion() < "4.2.0")

test_that("print in pipe", {
data(iris)
out <- capture.output(lm(Sepal.Length ~ Petal.Length + Species, data = iris) |>
model_parameters() |>
print(include_reference = TRUE))
out <- capture.output(
lm(Sepal.Length ~ Petal.Length + Species, data = iris) |>
model_parameters() |>
print(include_reference = TRUE)
)
expect_identical(
out[5],
"Species [setosa] | 0.00 | | | | "
Expand Down

0 comments on commit d7da1d4

Please sign in to comment.