summaryrefslogtreecommitdiff
path: root/tests/indent/gdscript_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/gdscript_spec.lua')
-rw-r--r--tests/indent/gdscript_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/indent/gdscript_spec.lua b/tests/indent/gdscript_spec.lua
new file mode 100644
index 00000000..c1770f41
--- /dev/null
+++ b/tests/indent/gdscript_spec.lua
@@ -0,0 +1,20 @@
+local Runner = require("tests.indent.common").Runner
+
+local run = Runner:new(it, "tests/indent/gdscript", {
+ tabstop = 4,
+ shiftwidth = 4,
+ softtabstop = 0,
+ expandtab = false,
+})
+
+describe("indent GDScript:", function()
+ describe("whole file:", function()
+ run:whole_file(".", {
+ expected_failures = {},
+ })
+ end)
+
+ describe("new line:", function()
+ run:new_line("basic_blocks.gd", { on_line = 1, text = "var member := 0", indent = 0 })
+ end)
+end)