From 4454459fb2ce64caaf1d0e32472ad7dcdbf3e436 Mon Sep 17 00:00:00 2001 From: Jędrzej Boczar Date: Sat, 13 Mar 2021 23:51:57 +0100 Subject: tests/indent: add basic examples for C and Rust --- lua/tests/indent/rust_spec.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/tests/indent/rust_spec.lua (limited to 'lua/tests/indent/rust_spec.lua') diff --git a/lua/tests/indent/rust_spec.lua b/lua/tests/indent/rust_spec.lua new file mode 100644 index 000000000..374e3db6d --- /dev/null +++ b/lua/tests/indent/rust_spec.lua @@ -0,0 +1,17 @@ +local whole_file = require('nvim-treesitter.test_utils').indent_whole_file + +describe('indent rust', function() + local files = { + 'basic.rs', + } + for _, file in ipairs(files) do + it(file, function() + whole_file('lua/tests/indent/rust/' .. file, { + tabstop = 4, + shiftwidth = 4, + softtabstop = 0, + expandtab = true, + }) + end) + end +end) -- cgit v1.2.3-70-g09d2