From 1a0b1ae238e1deb132a0ae4a8d0c589d583cc5b0 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 2 Apr 2022 19:07:27 -0700 Subject: [PATCH] Rename indent test test_t to indent_test_t This satifies VSCode's C++ extension which otherwise throws up a bogus error. No functional change here. --- src/fish_tests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index a7fa2694c..bd6d8646b 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -1389,12 +1389,12 @@ struct segment_t { /* implicit */ segment_t(const char *text) : text(text) {} }; -using test_t = std::vector; -using test_list_t = std::vector; +using indent_test_t = std::vector; +using indent_test_list_t = std::vector; // Add a new test to a test list based on a series of ints and texts. template -void add_test(test_list_t *v, const Types &...types) { +void add_test(indent_test_list_t *v, const Types &...types) { segment_t segments[] = {types...}; v->emplace_back(std::begin(segments), std::end(segments)); } @@ -1404,7 +1404,7 @@ static void test_indents() { say(L"Testing indents"); using namespace indent_tests; - test_list_t tests; + indent_test_list_t tests; add_test(&tests, // 0, "if", 1, " foo", // 0, "\nend"); @@ -1544,7 +1544,7 @@ static void test_indents() { ); int test_idx = 0; - for (const test_t &test : tests) { + for (const indent_test_t &test : tests) { // Construct the input text and expected indents. wcstring text; std::vector expected_indents;