Skip to content

Commit 321d3ee

Browse files
always use keyword invalid for unparsable
1 parent 4dad8ac commit 321d3ee

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repos:
5252
exclude: >
5353
(?x)^(
5454
tests/testthat/public-api/xyzaddin/addin_region-.*|
55-
tests/testmanual/addins/.*invalid.*|
55+
tests/.*invalid.*|
5656
tests/testthat/rmd/no-tidy-out\.Rmd|
5757
tests/testthat/escaping/basic-escape-out\.R|
5858
tests/testthat/indention_operators/.*pipe.*|

tests/testthat/test-public_api.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ test_that("styler can style Rmarkdown file", {
165165

166166
test_that("styler handles malformed Rmd file and invalid R code in chunk", {
167167
capture_output(expect_warning(
168-
style_file(testthat_file("public-api", "xyzfile_rmd", "random4.Rmd"), strict = FALSE),
168+
style_file(testthat_file("public-api", "xyzfile_rmd", "invalid4.Rmd"), strict = FALSE),
169169
"3: "
170170
))
171171

172172
capture_output(expect_warning(
173-
style_file(testthat_file("public-api", "xyzfile_rmd", "random7.Rmd"), strict = FALSE),
173+
style_file(testthat_file("public-api", "xyzfile_rmd", "invalid7.Rmd"), strict = FALSE),
174174
"Malformed file"
175175
))
176176
})

0 commit comments

Comments
 (0)