tests/testthat/test-multiple_expressions.R

library("testthat")


test_that("simple multiple expressions are styled correctly", {
  expect_warning(test_collection("multiple_expressions",
    "two_simple",
    transformer = style_text
  ), NA)
})

test_that("complex multiple expressions are styled correctly", {
  expect_warning(test_collection("multiple_expressions",
    "three_complex",
    transformer = style_text
  ), NA)
})

Try the styler package in your browser

Any scripts or data that you put into this service are public.

styler documentation built on Aug. 29, 2023, 5:10 p.m.