mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-20 15:40:50 +00:00
Fix unit test
This commit is contained in:
parent
c4a68356f6
commit
6362f0f002
3 changed files with 19 additions and 49 deletions
|
@ -912,15 +912,17 @@ TEST(machinery, diriterator) {
|
|||
SetListing lst(std::move(test_data));
|
||||
|
||||
auto i = lst.begin();
|
||||
EXPECT_EQ("", i->abs_path);
|
||||
|
||||
++i;
|
||||
EXPECT_EQ("BestAndBest", i->abs_path);
|
||||
|
||||
auto view = SetListingView(i);
|
||||
auto i2 = view.cbegin();
|
||||
EXPECT_EQ("BestAndBest/CD1", i2->abs_path);
|
||||
{
|
||||
auto view = SetListingView(i);
|
||||
auto i2 = view.cbegin();
|
||||
EXPECT_EQ("BestAndBest/CD1", i2->abs_path);
|
||||
|
||||
++i2;
|
||||
EXPECT_EQ("BestAndBest/CD2", i2->abs_path);
|
||||
++i2;
|
||||
EXPECT_EQ("BestAndBest/CD2", i2->abs_path);
|
||||
}
|
||||
|
||||
++i;
|
||||
EXPECT_EQ("City Hunter", i->abs_path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue