feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -1,30 +1,30 @@
local Runner = require("tests.indent.common").Runner
local Runner = require('tests.indent.common').Runner
local runner = Runner:new(it, "tests/indent/nix", {
local runner = Runner:new(it, 'tests/indent/nix', {
tabstop = 2,
shiftwidth = 2,
softtabstop = 2,
expandtab = true,
})
describe("indent Nix:", function()
describe("whole file:", function()
runner:whole_file(".", {
describe('indent Nix:', function()
describe('whole file:', function()
runner:whole_file('.', {
expected_failures = {},
})
end)
describe("new line:", function()
for _, info in ipairs {
describe('new line:', function()
for _, info in ipairs({
{ 14, 2 },
{ 16, 2 },
{ 48, 4 },
{ 112, 6 },
} do
runner:new_line("general.nix", { on_line = info[1], text = "x = 1;", indent = info[2] })
}) do
runner:new_line('general.nix', { on_line = info[1], text = 'x = 1;', indent = info[2] })
end
for _, info in ipairs {
for _, info in ipairs({
{ 115, 6 },
{ 113, 10 },
{ 6, 4 },
@ -33,8 +33,8 @@ describe("indent Nix:", function()
{ 35, 6 },
{ 23, 2 },
{ 21, 6 },
} do
runner:new_line("conds.nix", { on_line = info[1], text = "x = 1;", indent = info[2] })
}) do
runner:new_line('conds.nix', { on_line = info[1], text = 'x = 1;', indent = info[2] })
end
end)
end)