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

17
tests/indent/r/loop.R Normal file
View file

@ -0,0 +1,17 @@
x <- 1
while (x < 10) {
x <- x + 1
break
}
for (i in 1:3) {
x <- x + 1
}
repeat {
x <- x + 1
if (x > 100) {
break
}
}