Add highlighting tests for empty variables

This commit is contained in:
ridiculousfish 2018-09-01 12:05:52 -07:00
parent 9bce3f4741
commit 1a9e3761ae

View File

@ -4088,6 +4088,9 @@ static void test_highlighting() {
highlight_tests.push_back({{L"/bin/c", highlight_spec_command, ns},
{L"$VARIABLE_IN_COMMAND2", highlight_spec_operator, ns}});
highlight_tests.push_back({{L"$EMPTY_VARIABLE", highlight_spec_error}});
highlight_tests.push_back({{L"\"$EMPTY_VARIABLE\"", highlight_spec_error}});
for (const highlight_component_list_t &components : highlight_tests) {
// Generate the text.
wcstring text;