diff options
author | Konrad Borowski <x.fix@o2.pl> | 2014-05-06 12:31:44 +0200 |
---|---|---|
committer | Konrad Borowski <x.fix@o2.pl> | 2014-05-06 12:31:44 +0200 |
commit | 7f2c4cbf8a1c961b06c3801ce00a9233fb78d2d1 (patch) | |
tree | 1de0711c0dd644a7f42470ffadfe765cc919848d /fish_tests.cpp | |
parent | 91ebe12fc2d54f952d046716d85db13de00288e7 (diff) |
Move the empty function test to tests.
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index f82633c6..c7b2222b 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -687,6 +687,9 @@ static void test_parser() parser_t::principal_parser().eval(L"function recursive1 ; recursive2 ; end ; function recursive2 ; recursive1 ; end ; recursive1; ", io_chain_t(), TOP); #endif + say(L"Testing empty function name"); + parser_t::principal_parser().eval(L"function '' ; echo fail; exit 42 ; end ; ''", io_chain_t(), TOP); + say(L"Testing eval_args"); completion_list_t comps; parser_t::principal_parser().expand_argument_list(L"alpha 'beta gamma' delta", comps); |