@@ -130,18 +130,21 @@ test_that("styler can style Rmd file", {
130
130
}))
131
131
132
132
capture_output(expect_warning(
133
- styled <- style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random2.Rmd" ), strict = FALSE )
133
+ styled <- style_file(testthat_file(" public-api" , " xyzfile_rmd" ,
134
+ " random2.Rmd" ), strict = FALSE )
134
135
))
135
136
expect_false(styled $ changed )
136
137
})
137
138
138
139
test_that(" styler handles malformed Rmd file and invalid R code in chunk" , {
139
140
capture_output(expect_warning(
140
- style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random3.Rmd" ), strict = FALSE )
141
+ style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random3.Rmd" ), strict
142
+ = FALSE )
141
143
))
142
144
143
145
capture_output(expect_warning(
144
- style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random4.Rmd" ), strict = FALSE )
146
+ style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random4.Rmd" ), strict
147
+ = FALSE )
145
148
))
146
149
})
147
150
@@ -205,7 +208,6 @@ test_that("Messages can be suppressed", {
205
208
output <- catch_style_file_output(c(
206
209
" public-api" , " xyzdir-dirty" , " dirty-sample-with-scope-spaces.R"
207
210
), encoding = encoding )
208
- print(output )
209
211
expect_equal(output , character (0 ))
210
212
}
211
213
)
@@ -288,18 +290,21 @@ test_that("styler can style Rnw file", {
288
290
}))
289
291
290
292
capture_output(expect_warning(
291
- styled <- style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random2.Rnw" ), strict = FALSE )
293
+ styled <- style_file(testthat_file(" public-api" , " xyzfile-rnw" ,
294
+ " random2.Rnw" ), strict = FALSE )
292
295
))
293
296
expect_false(styled $ changed )
294
297
})
295
298
296
299
test_that(" styler handles malformed Rnw file and invalid R code in chunk" , {
297
300
capture_output(expect_warning(
298
- style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random3.Rnw" ), strict = FALSE )
301
+ style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random3.Rnw" ), strict
302
+ = FALSE )
299
303
))
300
304
301
305
capture_output(expect_warning(
302
- style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random4.Rnw" ), strict = FALSE )
306
+ style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random4.Rnw" ), strict
307
+ = FALSE )
303
308
))
304
309
})
305
310
0 commit comments