indents(r): add tests

This commit is contained in:
Pedro Castro 2022-01-28 19:21:50 -03:00 committed by Stephan Seitz
parent 807b20d0de
commit 995f462898
5 changed files with 50 additions and 0 deletions

12
tests/indent/r/cond.R Normal file
View file

@ -0,0 +1,12 @@
x <- 10
if (x > 3) {
x <- 3
} else if (x < 3) {
x <- -3
} else {
if (x > 0) {
x <- 1
}
x <- 0
}