diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-29 19:24:19 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-29 19:24:27 +0100 |
commit | ac4bac8ea4c5a8d520041ad509e10af454fcfce4 (patch) | |
tree | 87a57a03149b62116b8e1b6fa96117e5e3186626 /test/test_path_dirname.vader | |
parent | a7b8cb4fe32b43dbeeadc8cb94f378b4e2112723 (diff) | |
download | ale-ac4bac8ea4c5a8d520041ad509e10af454fcfce4.zip |
Add support for parsing compile_commands.json files for C compilers
Diffstat (limited to 'test/test_path_dirname.vader')
-rw-r--r-- | test/test_path_dirname.vader | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_path_dirname.vader b/test/test_path_dirname.vader new file mode 100644 index 00000000..79b78d29 --- /dev/null +++ b/test/test_path_dirname.vader @@ -0,0 +1,8 @@ +Execute(ale#path#Dirname should return empty strings should be returned for empty values): + AssertEqual '', ale#path#Dirname('') + AssertEqual '', ale#path#Dirname(0) + AssertEqual '', ale#path#Dirname(v:null) + +Execute(ale#path#Dirname should return the dirname of paths): + AssertEqual '/foo', ale#path#Dirname('/foo/bar') + AssertEqual '/foo', ale#path#Dirname('/foo/bar/') |