Skip to content

Commit ead2608

Browse files
fix test
1 parent 0d80a7b commit ead2608

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/testthat/test-cache-high-level-api.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,10 @@ capture.output(test_that("partial caching of multiple expressions on one line wo
191191
)
192192

193193
style_text("mtcars")
194-
style_text("mtcars %>%
195-
f()")
196-
final_text <- "mtcars %>%
197-
f() #"
194+
style_text(c("mtcars %>%", "f()"))
195+
final_text <- c("mtcars %>%", " f() #")
198196
expect_equal(
199197
as.character(style_text(final_text)),
200-
final_text,
198+
final_text
201199
)
202200
}))

0 commit comments

Comments
 (0)