mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-21 15:50:50 +00:00
Better way to construct SetListingView
This commit is contained in:
parent
2a7b8437ed
commit
bed191c4fc
3 changed files with 32 additions and 27 deletions
|
@ -175,7 +175,7 @@ TEST(machinery, diriterator) {
|
|||
|
||||
std::vector<std::string> flattened;
|
||||
flattened.reserve(lengthof(expected_list));
|
||||
flatten_filelist(SetListingView(lst), flattened);
|
||||
flatten_filelist(lst.make_view(), flattened);
|
||||
EXPECT_EQ(lengthof(expected_list), flattened.size());
|
||||
const auto count = std::min(lengthof(expected_list), flattened.size());
|
||||
for (std::size_t z = 0; z < count; ++z) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue