aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-13 20:49:14 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-13 20:49:14 -0700
commitf5442bdd4a8edd80158fca2ee0e1c2e311531e1c (patch)
treec2c0d9e504d4fa2667328501f96628afb7a6c0bc /fish_tests.cpp
parent129525af21d069943bb062e69a2a174e01a2c0e4 (diff)
Fixed cd autosuggestion for absolute paths
Removed some unnecessary path cleanup that is_potential_path now handles
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 405abf52..97f86d6e 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -616,6 +616,8 @@ static void test_is_potential_path()
assert(! is_potential_path(L"/tmp/is_potential_path_test/al/", wds, false, &tmp));
assert(! is_potential_path(L"/tmp/is_potential_path_test/ar", wds, false, &tmp));
+ assert(is_potential_path(L"/usr", wds, true, &tmp) && tmp == L"/usr/");
+
}
/** Test the 'test' builtin */