summaryrefslogtreecommitdiff
path: root/test/test_directory.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-27 21:50:16 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-27 21:50:16 -0500
commitc3cf6df863828798ed8230b0f0966bcf3b2d08dd (patch)
treec03f94128e4892d503532f7fb886dcd86fafdf72 /test/test_directory.cpp
parent7174a2741a6f7aa93c9d077dee384f8aa76d7a02 (diff)
Excise std::optional.
Diffstat (limited to 'test/test_directory.cpp')
-rw-r--r--test/test_directory.cpp4
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);
}