From 87dacc0e9536f49bfbd50983bb18e8f0c6235eac Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 9 Jan 2021 15:02:21 -0800 Subject: [PATCH] Improve formatting and layout of history path detection test --- src/fish_tests.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 05c4017df..57fcef88d 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -4378,9 +4378,15 @@ void history_tests_t::test_history_path_detection() { // Expected sets of paths. wcstring_list_t expected[hist_size] = { - {}, {filename}, {tmpdir + L"/" + filename}, {L"$HOME/" + filename}, {}, {L"~/" + filename}, - {}, {}, // we do not expand globs - {}, + {}, // cmd0 + {filename}, // cmd1 + {tmpdir + L"/" + filename}, // cmd2 + {L"$HOME/" + filename}, // cmd3 + {}, // cmd4 + {L"~/" + filename}, // cmd5 + {}, // cmd6 + {}, // cmd7 - we do not expand globs + {}, // cmd8 }; size_t lap;