diff options
author | 2015-07-26 00:12:36 -0700 | |
---|---|---|
committer | 2015-07-26 00:12:36 -0700 | |
commit | 4ebaa7b6bd595f37f66f8d77ee836c1e5a4ef647 (patch) | |
tree | ef3a2396c6307afb54697126a5c17f02c35835f4 /src/fish_tests.cpp | |
parent | 618896c0436e6ca70feb2fa317b34171cc4e1a81 (diff) |
Continue migration to the new tokenizer interface
Diffstat (limited to 'src/fish_tests.cpp')
-rw-r--r-- | src/fish_tests.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index cbece61c..791dbb17 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -435,34 +435,7 @@ static void test_convert_nulls(void) */ static void test_tok() { - say(L"Testing tokenizer"); - - - say(L"Testing invalid input"); - tokenizer_t t(NULL, 0); - - if (tok_last_type(&t) != TOK_ERROR) - { - err(L"Invalid input to tokenizer was undetected"); - } - - say(L"Testing use of broken tokenizer"); - if (!tok_has_next(&t)) - { - err(L"tok_has_next() should return 1 once on broken tokenizer"); - } - - tok_next(&t); - if (tok_last_type(&t) != TOK_ERROR) - { - err(L"Invalid input to tokenizer was undetected"); - } - - /* - This should crash if there is a bug. No reliable way to detect otherwise. - */ - say(L"Test destruction of broken tokenizer"); { const wchar_t *str = L"string <redirection 2>&1 'nested \"quoted\" '(string containing subshells ){and,brackets}$as[$well (as variable arrays)] not_a_redirect^ ^ ^^is_a_redirect Compress_Newlines\n \n\t\n \nInto_Just_One"; |