From 998a3d9d8362b18f01f1795990842d123630902e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 2 Jan 2025 08:50:44 -0600 Subject: [PATCH] updated test --- repertory/repertory_test/src/file_db_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repertory/repertory_test/src/file_db_test.cpp b/repertory/repertory_test/src/file_db_test.cpp index 9e29ee49..20f7550d 100644 --- a/repertory/repertory_test/src/file_db_test.cpp +++ b/repertory/repertory_test/src/file_db_test.cpp @@ -32,6 +32,9 @@ TYPED_TEST(file_db_test, can_add_and_remove_directory) { auto list = this->file_db->get_item_list(); EXPECT_EQ(1U, list.size()); + EXPECT_STREQ("/", list.at(0U).api_path.c_str()); + EXPECT_TRUE(list.at(0U).directory); + EXPECT_STREQ("c:\\test", list.at(0U).source_path.c_str()); EXPECT_EQ(api_error::success, this->file_db->remove_item("/")); @@ -51,6 +54,9 @@ TYPED_TEST(file_db_test, can_add_and_remove_file) { auto list = this->file_db->get_item_list(); EXPECT_EQ(1U, list.size()); + EXPECT_STREQ("/file", list.at(0U).api_path.c_str()); + EXPECT_FALSE(list.at(0U).directory); + EXPECT_STREQ("c:\\test\\file.txt", list.at(0U).source_path.c_str()); EXPECT_EQ(api_error::success, this->file_db->remove_item("/file"));