From 14f3a5f79a66aa02e775feb8a3db02e78a66a866 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 2 Mar 2023 08:09:45 +0100 Subject: [PATCH] Re-add highlighter tests These were removed by accident. --- src/fish_tests.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index e9a03c88a..9a9b572d6 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -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) {