mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-06 01:26:05 +00:00
Modernize std::count
with ranges
This commit is contained in:
parent
ed5eb49d47
commit
c46060e298
3 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ TEST_F(FileSystemTest, CreateFile)
|
|||
|
||||
const Result<std::vector<std::string>> tmp_files = m_fs->ReadDirectory(Uid{0}, Gid{0}, "/tmp");
|
||||
ASSERT_TRUE(tmp_files.Succeeded());
|
||||
EXPECT_EQ(std::count(tmp_files->begin(), tmp_files->end(), "f"), 1u);
|
||||
EXPECT_EQ(std::ranges::count(*tmp_files, "f"), 1u);
|
||||
|
||||
// Test invalid paths
|
||||
// Unprintable characters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue