summaryrefslogtreecommitdiff
path: root/test/test_directory.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-28 18:35:57 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-28 18:35:57 -0500
commit4ef88103f74a3a6e8e36ae9eff80f641e20bd1a1 (patch)
tree4dc098488ea087de82b1edccdc89853c6b04c891 /test/test_directory.cpp
parentb6967c8a9190efa4e9128850fa723fe3ea3140f7 (diff)
Fix string catenate error.
Diffstat (limited to 'test/test_directory.cpp')
-rw-r--r--test/test_directory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_directory.cpp b/test/test_directory.cpp
index 45d0c77..3c43663 100644
--- a/test/test_directory.cpp
+++ b/test/test_directory.cpp
@@ -113,10 +113,10 @@ TEST(FudDirectory, Basic)
ASSERT_EQ(directory.errorCode(), 0);
const Array<DirectoryEntry, 4> expectedFiles{
- DirectoryEntry{String{"."}, 0, 2, 0, DirectoryEntryType::Directory},
- DirectoryEntry{String{".."}, 0, 1, 0, DirectoryEntryType::Directory},
- DirectoryEntry{files[0], files[0].size(), 1, 0, DirectoryEntryType::RegularFile},
- DirectoryEntry{files[1], files[1].size(), 1, 0, DirectoryEntryType::RegularFile},
+ DirectoryEntry{String{"."}, 0, 0, 2, 0, DirectoryEntryType::Directory},
+ DirectoryEntry{String{".."}, 0, 0, 1, 0, DirectoryEntryType::Directory},
+ DirectoryEntry{files[0], 0, files[0].size(), 1, 0, DirectoryEntryType::RegularFile},
+ DirectoryEntry{files[1], 0, files[1].size(), 1, 0, DirectoryEntryType::RegularFile},
};
ASSERT_TRUE(expectedFiles[0].name.compare(expectedFiles[0].name));