diff options
| author | Alvaro Muñoz <pwntester@github.com> | 2023-01-31 10:47:48 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-01-31 12:23:13 +0100 |
| commit | 9d6d348418c1ef2019a7c9327fd1486bc09b7bf6 (patch) | |
| tree | 44e51a6ad8503ea20da8f9290c3a09b1f0cddaee /tests/indent/ql_spec.lua | |
| parent | fix(ql): Add moduleMember to indent file (diff) | |
| download | nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.tar nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.tar.gz nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.tar.bz2 nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.tar.lz nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.tar.xz nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.tar.zst nvim-treesitter-9d6d348418c1ef2019a7c9327fd1486bc09b7bf6.zip | |
add ql indent tests
Diffstat (limited to 'tests/indent/ql_spec.lua')
| -rw-r--r-- | tests/indent/ql_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/indent/ql_spec.lua b/tests/indent/ql_spec.lua new file mode 100644 index 000000000..dc2ef719d --- /dev/null +++ b/tests/indent/ql_spec.lua @@ -0,0 +1,20 @@ +local Runner = require("tests.indent.common").Runner + +local run = Runner:new(it, "tests/indent/ql", { + tabstop = 2, + shiftwidth = 2, + softtabstop = 0, + expandtab = true, +}) + +describe("indent Lua:", function() + describe("whole file:", function() + run:whole_file(".", { + expected_failures = {}, + }) + end) +end) + +describe("new line:", function() + run:new_line("module.ql", { on_line = 6, text = "predicate test() {}", indent = 2 }) +end) |
