summaryrefslogtreecommitdiff
path: root/test/command_callback/test_zig_zls_callbacks.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_zig_zls_callbacks.vader')
-rw-r--r--test/command_callback/test_zig_zls_callbacks.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command_callback/test_zig_zls_callbacks.vader b/test/command_callback/test_zig_zls_callbacks.vader
new file mode 100644
index 00000000..6e42cc4b
--- /dev/null
+++ b/test/command_callback/test_zig_zls_callbacks.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpLinterTest('zig', 'zls')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default executable path should be correct):
+ AssertLinter 'zls', ale#Escape('zls')
+
+Execute(The project root should be detected correctly):
+ AssertLSPProject ''
+
+ call ale#test#SetFilename('zig-zls-project/main.zig')
+
+ AssertLSPProject ale#path#Simplify(g:dir . '/zig-zls-project')