aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/r/func.R6
-rw-r--r--tests/indent/r_spec.lua1
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/indent/r/func.R b/tests/indent/r/func.R
index bc184dfb7..2048dd87a 100644
--- a/tests/indent/r/func.R
+++ b/tests/indent/r/func.R
@@ -10,3 +10,9 @@ foo <- function(x) {
)
)
}
+
+baz <- function(l) {
+ inner(l, function(x) {
+
+ })
+}
diff --git a/tests/indent/r_spec.lua b/tests/indent/r_spec.lua
index 7b624411d..ac1ed31e3 100644
--- a/tests/indent/r_spec.lua
+++ b/tests/indent/r_spec.lua
@@ -27,6 +27,7 @@ describe("indent R:", function()
run:new_line("func.R", { on_line = 2, text = "a <- a + 1", indent = 4 })
run:new_line("func.R", { on_line = 6, text = "0,", indent = 6 })
run:new_line("func.R", { on_line = 6, text = "0,", indent = 6 })
+ run:new_line("func.R", { on_line = 16, text = "x <- x + 1", indent = 4 })
run:new_line("loop.R", { on_line = 1, text = "x <- x + 1", indent = 0 })
run:new_line("loop.R", { on_line = 3, text = "x <- x + 1", indent = 2 })