Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't check specific error message #929

Merged
merged 1 commit into from
Mar 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# All available hooks: https://pre-commit.com/hooks.html
# R specific hooks: https://github.com/lorenzwalthert/precommit
default_stages: [commit]
default_language_version:
python: python3

repos:
- repo: https://github.com/lorenzwalthert/precommit
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
* terminate running jobs on new push to save resources (#888).
* Use the {touchstone} GitHub Action instead of the literal script (#889).
* upgrade R CMD check Github Actions to use `v2`.
* {styler} test are relaxed to not assume a specific error message on the
wrong usage of `_` (#929).

# styler 1.6.2

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-escaping.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test_that("escaping of characters works", {

expect_error(test_collection("escaping", "fail-parsing-3",
transformer = style_text
), "<text>:2:3: unexpected input\n1: \n2: 1 _\n ^", fixed = TRUE)
))

expect_error(test_collection("escaping", "fail-parsing-4",
transformer = style_text
Expand Down