From c2600652349798543a39b41fc548ec2464686070 Mon Sep 17 00:00:00 2001 From: xxy <3237539022@qq.com> Date: Wed, 27 Nov 2024 18:27:53 +0800 Subject: [PATCH] revise test --- .gitignore | 1 + test/test.cpp | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f24cf27..cda61e2 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ out/ # 忽略 third_party 目录及其内容 third_party/ +testdb_for_XOY/ \ No newline at end of file diff --git a/test/test.cpp b/test/test.cpp index 23599fd..2ac837c 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -83,7 +83,7 @@ Status Get_keys_by_field(DB *db,const ReadOptions& options, const Field field,st return Status::OK(); } -TEST(TestTTL, OurTTL) { +TEST(Test, CheckGetFields) { DB *db; WriteOptions writeOptions; ReadOptions readOptions; @@ -123,8 +123,26 @@ TEST(TestTTL, OurTTL) { } ASSERT_TRUE(CompareFieldArray(fields1, res1)); - std::cout<<"get serialized value done"< keys = {key1, key2}; std::vector key_res;