aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/usd_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/usd_spec.lua')
-rw-r--r--tests/indent/usd_spec.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/indent/usd_spec.lua b/tests/indent/usd_spec.lua
new file mode 100644
index 000000000..c4e8198aa
--- /dev/null
+++ b/tests/indent/usd_spec.lua
@@ -0,0 +1,21 @@
+local Runner = require("tests.indent.common").Runner
+
+local run = Runner:new(it, "tests/indent/usd", {
+ tabstop = 4,
+ shiftwidth = 4,
+ softtabstop = 4,
+ expandtab = true,
+})
+
+describe("indent USD:", function()
+ describe("whole file:", function()
+ run:whole_file(".", {
+ expected_failures = {},
+ })
+ end)
+
+ 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 })
+ end)
+end)