updated test
This commit is contained in:
@ -32,6 +32,9 @@ TYPED_TEST(file_db_test, can_add_and_remove_directory) {
|
|||||||
|
|
||||||
auto list = this->file_db->get_item_list();
|
auto list = this->file_db->get_item_list();
|
||||||
EXPECT_EQ(1U, list.size());
|
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("/"));
|
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();
|
auto list = this->file_db->get_item_list();
|
||||||
EXPECT_EQ(1U, list.size());
|
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"));
|
EXPECT_EQ(api_error::success, this->file_db->remove_item("/file"));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user