diff --git a/fish_tests.cpp b/fish_tests.cpp index f82633c63..c7b2222b4 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); diff --git a/tests/test10.err b/tests/test10.err deleted file mode 100644 index abf6ca379..000000000 --- a/tests/test10.err +++ /dev/null @@ -1,4 +0,0 @@ -function: No function name given - -fish: function "" - ^ diff --git a/tests/test10.in b/tests/test10.in deleted file mode 100644 index bcb5985a1..000000000 --- a/tests/test10.in +++ /dev/null @@ -1,3 +0,0 @@ -function "" -end -echo Hello, world! diff --git a/tests/test10.out b/tests/test10.out deleted file mode 100644 index af5626b4a..000000000 --- a/tests/test10.out +++ /dev/null @@ -1 +0,0 @@ -Hello, world! diff --git a/tests/test10.status b/tests/test10.status deleted file mode 100644 index 573541ac9..000000000 --- a/tests/test10.status +++ /dev/null @@ -1 +0,0 @@ -0