Skip to content

Commit 4f706af

Browse files
don't set default argument explicitly
1 parent 521f700 commit 4f706af

8 files changed

+11
-21
lines changed

tests/testthat/test-curly-curly.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ context("curly-curly")
33
test_that("curly-culry", {
44
expect_warning(test_collection("curly-curly",
55
"mixed",
6-
transformer = style_text,
7-
write_back = TRUE
6+
transformer = style_text
87
), NA)
98
})

tests/testthat/test-escaping.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
test_that("escaping of characters works", {
22
expect_warning(test_collection("escaping",
3-
transformer = style_text,
4-
write_back = TRUE
3+
transformer = style_text
54
), "macro '")
65
})

tests/testthat/test-indention_multiple.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,14 @@ test_that("multiple curly and round brackets don't cause extraindention", {
3333
test_that("multiple curly and round brackets overall test", {
3434
expect_warning(test_collection("indention_multiple",
3535
"overall",
36-
transformer = style_text,
37-
write_back = TRUE
36+
transformer = style_text
3837
), NA)
3938
})
4039

4140
test_that("if and ifelse interacting with curly braces works", {
4241
expect_warning(test_collection("indention_multiple",
4342
"if_else_curly",
44-
transformer = style_text,
45-
write_back = TRUE, strict = FALSE
43+
transformer = style_text, strict = FALSE
4644
), NA)
4745
})
4846

tests/testthat/test-indention_operators.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ context("indention operators")
33
test_that("pipe is indended correctly", {
44
expect_warning(test_collection("indention_operators",
55
"pipe",
6-
transformer = style_text,
7-
write_back = TRUE
6+
transformer = style_text
87
), NA)
98
})
109

tests/testthat/test-parse_comments.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ test_that("comments are treated corectly", {
3636

3737
expect_warning(test_collection("parse_comments",
3838
"with_indention",
39-
transformer = style_text,
40-
write_back = TRUE
39+
transformer = style_text
4140
), NA)
4241
})
4342

tests/testthat/test-serialize_tests.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ test_that("No files to compare returns error", {
99
test_that("properly detects non-match", {
1010
expect_warning(
1111
test_collection("serialize_tests", "k3",
12-
transformer = identity,
13-
write_back = FALSE
12+
transformer = identity
1413
),
1514
"different"
1615
)

tests/testthat/test-start_line.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ context("start token")
22

33
test_that("leading spaces are preserved at start of text", {
44
expect_warning(test_collection("start_line",
5-
transformer = style_empty, write_back = TRUE
5+
transformer = style_empty
66
), NA)
77
})

tests/testthat/test-unindention.R

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ context("unindention")
33
test_that("round brackets are unindented correctly", {
44
expect_warning(test_collection("unindention",
55
"mixed",
6-
transformer = style_text_without_curly_curly,
7-
write_back = TRUE
6+
transformer = style_text_without_curly_curly
87
), NA)
98
})
109

1110
test_that("tokens are not dropped in named vector", {
1211
expect_warning(test_collection("unindention",
1312
"vec",
14-
transformer = style_text,
15-
write_back = TRUE
13+
transformer = style_text
1614
), NA)
1715
})
1816

@@ -23,7 +21,6 @@ test_that(paste(
2321
), {
2422
expect_warning(test_collection("unindention",
2523
"vec",
26-
transformer = style_text,
27-
write_back = TRUE
24+
transformer = style_text
2825
), NA)
2926
})

0 commit comments

Comments
 (0)