diff options
Diffstat (limited to 'test/test_directory.cpp')
-rw-r--r-- | test/test_directory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_directory.cpp b/test/test_directory.cpp index e30dafb..58efc13 100644 --- a/test/test_directory.cpp +++ b/test/test_directory.cpp @@ -83,7 +83,7 @@ TEST(FudDirectory, Basic) auto dirEntryResult = directory.getNextEntry(); EXPECT_TRUE(dirEntryResult.isOkay()); auto dirEntryOpt = dirEntryResult.takeOkay(); - if (dirEntryOpt == std::nullopt) { + if (dirEntryOpt.isNone()) { break; } auto dirEntry{std::move(dirEntryOpt.value())}; @@ -99,7 +99,7 @@ TEST(FudDirectory, Basic) auto finalDirEntryResult = directory.getNextEntry(); EXPECT_TRUE(finalDirEntryResult.isOkay()); - EXPECT_EQ(finalDirEntryResult.getOkay(), std::nullopt); + EXPECT_TRUE(finalDirEntryResult.takeOkay().isNone()); // ASSERT_EQ(removeRecursive(testDirName), FudStatus::Success); } |