Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 21, 2024
1 parent 1a990d4 commit 8444f50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test_ggcall_with_assignments.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ test_that("ggcall_add_assignments correctly adds assignments", {
expect_true(grepl("x <-", paste(deparse(result_call), collapse = "\n")))
expect_true(grepl("y <-", paste(deparse(result_call), collapse = "\n")))
expect_true(
grepl('data <- ggcall_env\\(plot_call\\)\\[\\[\\"data\\"\\]\\]',
paste(deparse(result_call), collapse = "\n"))
grepl(
'data <- ggcall_env\\(plot_call\\)\\[\\[\\"data\\"\\]\\]',
paste(deparse(result_call), collapse = "\n")
)
)
expect_true(grepl('x <- \\"wt\\"', paste(deparse(result_call), collapse = "\n")))
expect_true(grepl('y <- \\"mpg\\"', paste(deparse(result_call), collapse = "\n")))
Expand Down

0 comments on commit 8444f50

Please sign in to comment.