These functions can be used as inputs for test_collection() and transform_and_check().

style_empty(text)

style_indent_curly(text)

style_indent_curly_round(text)

style_op(text)

Arguments

text

A character vector to transform.

Details

As inputs for test_collection(), we can also use top-level functions such as style_text().

Functions

  • style_empty: Nest and unnest text without applying any transformations but remove EOL spaces and indention due to the way the serialization is set up.

  • style_indent_curly: Transformations for indention based on curly brackets only.

  • style_indent_curly_round: Transformations for indention based on curly brackets and round brackets.

  • style_op: Transformations for indention based on operators