summaryrefslogtreecommitdiff
path: root/test/test_env_function.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-15 18:24:53 +0100
committerw0rp <devw0rp@gmail.com>2018-07-15 18:28:28 +0100
commita42999a639b2916b769a85f37d037be314d9d61b (patch)
tree5ebfb4d357dc673efa93fd32a66b489c4510de40 /test/test_env_function.vader
parent5155a35a80fe3b20659eb0f28cc6cc720532dd3f (diff)
downloadale-a42999a639b2916b769a85f37d037be314d9d61b.zip
Massively reduce the amount of code needed for linter tests
Diffstat (limited to 'test/test_env_function.vader')
-rw-r--r--test/test_env_function.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_env_function.vader b/test/test_env_function.vader
new file mode 100644
index 00000000..856a3f57
--- /dev/null
+++ b/test/test_env_function.vader
@@ -0,0 +1,8 @@
+Execute(ale#Env should produce the correct syntax):
+ if has('win32')
+ AssertEqual 'set name=xxx && ', ale#Env('name', 'xxx')
+ AssertEqual 'set name="foo bar" && ', ale#Env('name', 'foo bar')
+ else
+ AssertEqual 'name=''xxx'' ', ale#Env('name', 'xxx')
+ AssertEqual 'name=''foo bar'' ', ale#Env('name', 'foo bar')
+ endif