summaryrefslogtreecommitdiff
path: root/test/test_path_upwards.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-05 15:51:31 +0100
committerw0rp <devw0rp@gmail.com>2017-07-05 15:51:31 +0100
commit1bd9b0fbe2b43dfa6716fcbf4cee5dfa4f6b9f1c (patch)
tree35b4c5d90d79f41036a88f35be72d4688ee925dc /test/test_path_upwards.vader
parenta04e73ddbcbc2371424644145941f3878f894de8 (diff)
downloadale-1bd9b0fbe2b43dfa6716fcbf4cee5dfa4f6b9f1c.zip
#729 - Use a wrapper for simplify to fix // problems on Windows
Diffstat (limited to 'test/test_path_upwards.vader')
-rw-r--r--test/test_path_upwards.vader4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_path_upwards.vader b/test/test_path_upwards.vader
index 2f7b2c0f..5e7d576e 100644
--- a/test/test_path_upwards.vader
+++ b/test/test_path_upwards.vader
@@ -44,3 +44,7 @@ Execute(ale#path#Upwards should return the correct path components for Windows):
\ ale#path#Upwards('foo//..///foo2////bar')
" Expect an empty List for empty strings.
AssertEqual [], ale#path#Upwards('')
+ " Paths starting with // return /
+ AssertEqual
+ \ ['/foo2\bar', '/foo2', '/'],
+ \ ale#path#Upwards('//foo//..///foo2////bar')