2023-06-12 09:54:30 -06:00
|
|
|
local Runner = require('tests.indent.common').Runner
|
2023-05-06 16:00:17 -07:00
|
|
|
|
2023-06-12 09:54:30 -06:00
|
|
|
local run = Runner:new(it, 'tests/indent/usd', {
|
2023-05-06 16:00:17 -07:00
|
|
|
tabstop = 4,
|
|
|
|
|
shiftwidth = 4,
|
|
|
|
|
softtabstop = 4,
|
|
|
|
|
expandtab = true,
|
|
|
|
|
})
|
|
|
|
|
|
2023-06-12 09:54:30 -06:00
|
|
|
describe('indent USD:', function()
|
|
|
|
|
describe('whole file:', function()
|
|
|
|
|
run:whole_file('.', {
|
2023-05-06 16:00:17 -07:00
|
|
|
expected_failures = {},
|
|
|
|
|
})
|
|
|
|
|
end)
|
|
|
|
|
|
2023-06-12 09:54:30 -06:00
|
|
|
describe('new line:', function()
|
|
|
|
|
run:new_line('prim.usd', { on_line = 3, text = 'active = false', indent = 4 })
|
|
|
|
|
run:new_line('prim.usd', { on_line = 5, text = 'custom int foo = 10', indent = 4 })
|
2023-05-06 16:00:17 -07:00
|
|
|
end)
|
|
|
|
|
end)
|