-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ignore mulit-line for / while condition without braces for strict = F…
…ALSE
- Loading branch information
1 parent
d718c49
commit 5f1be90
Showing
8 changed files
with
416 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
351 changes: 177 additions & 174 deletions
351
tests/testthat/indention_operators/while_for_if_without_curly_non_strict-in_tree
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tests/testthat/indention_operators/while_for_without_curly_same_line_non_strict-in.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
while(x == 2) h( | ||
2 | ||
) | ||
|
||
while(x == 2) h( # comment | ||
2 | ||
) | ||
|
||
while(x == 2 && | ||
2 + 2 == 2) h( | ||
2 | ||
) | ||
|
||
|
||
for(x in 1:22) h( | ||
2 | ||
) | ||
|
||
for(x in 1:22) h( # comment | ||
2 | ||
) | ||
|
||
for(k in f( | ||
2:22 | ||
)) h( | ||
2 | ||
) | ||
|
||
for(k in f( | ||
2:22 # comment | ||
)) h(2) |
157 changes: 157 additions & 0 deletions
157
tests/testthat/indention_operators/while_for_without_curly_same_line_non_strict-in_tree
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
tests/testthat/indention_operators/while_for_without_curly_same_line_non_strict-out.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
while (x == 2) h( | ||
2 | ||
) | ||
|
||
while (x == 2) h( # comment | ||
2 | ||
) | ||
|
||
while (x == 2 && | ||
2 + 2 == 2) h( | ||
2 | ||
) | ||
|
||
|
||
for (x in 1:22) h( | ||
2 | ||
) | ||
|
||
for (x in 1:22) h( # comment | ||
2 | ||
) | ||
|
||
for (k in f( | ||
2:22 | ||
)) h( | ||
2 | ||
) | ||
|
||
for (k in f( | ||
2:22 # comment | ||
)) h(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters