diff options
Diffstat (limited to 'tests/indent/wgsl_spec.lua')
| -rw-r--r-- | tests/indent/wgsl_spec.lua | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/indent/wgsl_spec.lua b/tests/indent/wgsl_spec.lua index e1bf618f8..9a30cff4b 100644 --- a/tests/indent/wgsl_spec.lua +++ b/tests/indent/wgsl_spec.lua @@ -1,43 +1,43 @@ -local Runner = require("tests.indent.common").Runner +local Runner = require('tests.indent.common').Runner --local XFAIL = require("tests.indent.common").XFAIL -local run = Runner:new(it, "tests/indent/wgsl", { +local run = Runner:new(it, 'tests/indent/wgsl', { tabstop = 2, shiftwidth = 2, softtabstop = 0, expandtab = true, }) -describe("indent WGSL:", function() - describe("whole file:", function() - run:whole_file(".", { +describe('indent WGSL:', function() + describe('whole file:', function() + run:whole_file('.', { expected_failures = {}, }) end) - describe("new line:", function() - run:new_line("basic.wgsl", { on_line = 47, text = "c: u32,", indent = 2 }) - run:new_line("basic.wgsl", { on_line = 52, text = "c: u32,", indent = 2 }) - run:new_line("basic.wgsl", { on_line = 56, text = "c: u32,", indent = 2 }) - run:new_line("basic.wgsl", { on_line = 59, text = "c: u32,", indent = 2 }) - run:new_line("type_constructor_or_function_call_expression.wgsl", { + describe('new line:', function() + run:new_line('basic.wgsl', { on_line = 47, text = 'c: u32,', indent = 2 }) + run:new_line('basic.wgsl', { on_line = 52, text = 'c: u32,', indent = 2 }) + run:new_line('basic.wgsl', { on_line = 56, text = 'c: u32,', indent = 2 }) + run:new_line('basic.wgsl', { on_line = 59, text = 'c: u32,', indent = 2 }) + run:new_line('type_constructor_or_function_call_expression.wgsl', { on_line = 3, - text = "b", + text = 'b', indent = 4, }) - run:new_line("type_constructor_or_function_call_expression.wgsl", { + run:new_line('type_constructor_or_function_call_expression.wgsl', { on_line = 4, - text = "c", + text = 'c', indent = 4, }) - run:new_line("type_constructor_or_function_call_expression.wgsl", { + run:new_line('type_constructor_or_function_call_expression.wgsl', { on_line = 8, - text = "b", + text = 'b', indent = 4, }) - run:new_line("type_constructor_or_function_call_expression.wgsl", { + run:new_line('type_constructor_or_function_call_expression.wgsl', { on_line = 9, - text = "c", + text = 'c', indent = 4, }) end) |
