summaryrefslogtreecommitdiff
path: root/tests/indent/rust_spec.lua
diff options
context:
space:
mode:
authorMunif Tanjim <hello@muniftanjim.dev>2022-01-21 19:57:24 +0600
committerChristian Clason <christian.clason@uni-due.de>2022-01-21 16:40:36 +0100
commitfb7b6a266efa4944f0001a840f4fe1e0570280a6 (patch)
tree07991ced880fb0835983448dd7b63c83743b0cab /tests/indent/rust_spec.lua
parentc2e3938510e8fc2cb89b991afe95ca61a79c4683 (diff)
test(indent): rust - add test for indented comment
Diffstat (limited to 'tests/indent/rust_spec.lua')
-rw-r--r--tests/indent/rust_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/indent/rust_spec.lua b/tests/indent/rust_spec.lua
index ad56ae2b..dda49568 100644
--- a/tests/indent/rust_spec.lua
+++ b/tests/indent/rust_spec.lua
@@ -16,6 +16,7 @@ describe("indent Rust:", function()
run:new_line("array.rs", { on_line = 2, text = "0,", indent = 4 })
run:new_line("array.rs", { on_line = 8, text = "0,", indent = 8 })
run:new_line("comment.rs", { on_line = 3, text = "a", indent = "/// " })
+ run:new_line("comment.rs", { on_line = 10, text = "a", indent = " /// " })
run:new_line("cond.rs", { on_line = 11, text = "x += 1;", indent = 12 })
run:new_line("cond.rs", { on_line = 2, text = "x += 1;", indent = 8 })
run:new_line("cond.rs", { on_line = 4, text = "x += 1;", indent = 8 })