Re-add highlighter tests

These were removed by accident.
This commit is contained in:
Johannes Altmanninger 2023-03-02 08:09:45 +01:00
parent 17c1fa9d64
commit 14f3a5f79a

View File

@ -1530,12 +1530,6 @@ static void test_indents() {
0, "\nend" //
);
tests.clear();
add_test(&tests, //
0, "echo 'continuation line' \\", //
1, "\ncont", //
0, "\n" //
);
int test_idx = 0;
for (const indent_test_t &test : tests) {
// Construct the input text and expected indents.
@ -5710,13 +5704,6 @@ static void test_highlighting() {
});
#endif
highlight_tests.clear();
highlight_tests.push_back({
{L"echo", highlight_role_t::command},
{L"stuff", highlight_role_t::param},
{L"# comment", highlight_role_t::comment},
});
bool saved_flag = feature_test(feature_flag_t::ampersand_nobg_in_token);
mutable_fish_features()->set(feature_flag_t::ampersand_nobg_in_token, true);
for (const highlight_component_list_t &components : highlight_tests) {