diff options
author | 2014-05-02 10:00:00 -0700 | |
---|---|---|
committer | 2014-05-02 23:25:54 -0700 | |
commit | c66a574fa0d7feab71eafc1adc5a027cc011ef80 (patch) | |
tree | ff31eff7724d36ccf80511e572ec26f9bb24a725 /fish_tests.cpp | |
parent | ef3259035da52ea04005dae4aabce88c30282513 (diff) |
Simple test for completing redirections
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index 6e293514..eca03097 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -1866,6 +1866,11 @@ static void test_complete(void) complete(L"echo (builtin scuttlebut", completions, COMPLETION_REQUEST_DEFAULT); do_test(completions.size() == 0); + /* Not after a redirection */ + completions.clear(); + complete(L"echo hi > scuttlebut", completions, COMPLETION_REQUEST_DEFAULT); + do_test(completions.size() == 0); + /* Trailing spaces (#1261) */ complete_add(L"foobarbaz", false, 0, NULL, 0, NO_FILES, NULL, L"qux", NULL, COMPLETE_AUTO_SPACE); completions.clear(); |