summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorTravis Gibson <TGib.Travis@protonmail.com>2018-09-28 16:18:40 -0700
committerTravis Gibson <TGib.Travis@protonmail.com>2018-09-28 16:18:40 -0700
commit2b2e766dc6df4d05e58c106f51b5444be4efbcea (patch)
tree516ff2921e8d6e96c00a93880caa068df07a3f24 /test/command_callback
parenta8915d885b79ba8e243c228c9f38dddbcb1c479a (diff)
downloadale-2b2e766dc6df4d05e58c106f51b5444be4efbcea.zip
Add Perl6 support via 'perl6 -c'
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_perl6_command_callback.vader14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command_callback/test_perl6_command_callback.vader b/test/command_callback/test_perl6_command_callback.vader
new file mode 100644
index 00000000..d3ec6e17
--- /dev/null
+++ b/test/command_callback/test_perl6_command_callback.vader
@@ -0,0 +1,14 @@
+Before:
+ call ale#assert#SetUpLinterTest('perl6', 'perl6')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default Perl6 command callback should be correct):
+ AssertLinter 'perl6', 'perl6' . ' -c -Ilib %t'
+
+Execute(Overriding the executable and command should work):
+ let b:ale_perl6_perl6_executable = 'foobar'
+ let b:ale_perl6_perl6_options = '-w'
+
+ AssertLinter 'foobar', 'foobar' . ' -w %t'