diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-28 11:14:31 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-28 11:14:31 -0500 |
commit | b6967c8a9190efa4e9128850fa723fe3ea3140f7 (patch) | |
tree | 101be12055abd27968fce2666d573c80f8afe22d /test | |
parent | 987466c74332025fae74d196ff680a57ccb247a2 (diff) |
Expand directory interface, remove FileStatus for FudStatus.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_directory.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_directory.cpp b/test/test_directory.cpp index 9cec80d..45d0c77 100644 --- a/test/test_directory.cpp +++ b/test/test_directory.cpp @@ -100,9 +100,9 @@ TEST(FudDirectory, Basic) const auto fname = testDirNamePrefix.catenate(fnameBase); ASSERT_TRUE(fname.utf8Valid()); CBinaryFile file{fname, CFileMode::ReadWriteTruncate}; - ASSERT_EQ(file.open(), FileStatus::Success); + ASSERT_EQ(file.open(), FudStatus::Success); Array<utf8, 5> data{"test"}; - WriteResult expected{data.size(), FileStatus::Success}; + WriteResult expected{data.size(), FudStatus::Success}; auto writeResult = file.write(data); ASSERT_EQ(writeResult.bytesWritten, expected.bytesWritten); ASSERT_EQ(writeResult.status, expected.status); @@ -134,7 +134,6 @@ TEST(FudDirectory, Basic) [&dirEntry](const DirectoryEntry& entry) { return entry.name.compare(dirEntry.name) && entry.entryType == dirEntry.entryType; }); EXPECT_NE(expected, nullptr); EXPECT_NE(expected, expectedFiles.end()); - printf("%s %u\n", dirEntry.name.c_str(), static_cast<uint8_t>(dirEntry.entryType)); } auto finalDirEntryResult = directory.getNextEntry(); |