diff --git a/test/limestone/log/log_entry_4_LevelDB_test.cpp b/test/limestone/log/log_entry_4_LevelDB_test.cpp index a412b83d..8a0f19de 100644 --- a/test/limestone/log/log_entry_4_LevelDB_test.cpp +++ b/test/limestone/log/log_entry_4_LevelDB_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Project Tsurugi. + * Copyright 2022-2024 Project Tsurugi. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,7 +92,7 @@ TEST_F(log_entry_4_LevelDB_test, write_and_read_and_write_and_read) { limestone::api::write_version_type buf_version; log_entry_normal_.write_version(buf_version); - EXPECT_TRUE(buf_version == write_version); + EXPECT_EQ(buf_version, write_version); } } // namespace limestone::testing diff --git a/test/limestone/log/log_entry_test.cpp b/test/limestone/log/log_entry_test.cpp index d15fd14a..3eb44cd7 100644 --- a/test/limestone/log/log_entry_test.cpp +++ b/test/limestone/log/log_entry_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Project Tsurugi. + * Copyright 2022-2024 Project Tsurugi. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,7 +78,7 @@ TEST_F(log_entry_test, write_and_read) { limestone::api::write_version_type buf_version; log_entry_.write_version(buf_version); - EXPECT_TRUE(buf_version == write_version); + EXPECT_EQ(buf_version, write_version); } TEST_F(log_entry_test, write_and_read_and_write_and_read) { @@ -113,7 +113,7 @@ TEST_F(log_entry_test, write_and_read_and_write_and_read) { limestone::api::write_version_type buf_version; log_entry_.write_version(buf_version); - EXPECT_TRUE(buf_version == write_version); + EXPECT_EQ(buf_version, write_version); } } // namespace limestone::testing diff --git a/test/limestone/log/log_entry_type_test.cpp b/test/limestone/log/log_entry_type_test.cpp index 353ce5d2..48f57dc4 100644 --- a/test/limestone/log/log_entry_type_test.cpp +++ b/test/limestone/log/log_entry_type_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Project Tsurugi. + * Copyright 2022-2024 Project Tsurugi. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -90,7 +90,7 @@ TEST_F(log_entry_type_test, write_and_read) { limestone::api::write_version_type buf_version; log_entry_normal_.write_version(buf_version); - EXPECT_TRUE(buf_version == write_version); + EXPECT_EQ(buf_version, write_version); EXPECT_EQ(log_entry_end_.type(), limestone::api::log_entry::entry_type::marker_end); EXPECT_EQ(log_entry_end_.epoch_id(), epoch_id + 1); @@ -139,7 +139,7 @@ TEST_F(log_entry_type_test, write_and_read_and_write_and_read) { limestone::api::write_version_type buf_version; log_entry_normal_.write_version(buf_version); - EXPECT_TRUE(buf_version == write_version); + EXPECT_EQ(buf_version, write_version); EXPECT_EQ(log_entry_end_.type(), limestone::api::log_entry::entry_type::marker_end); EXPECT_EQ(log_entry_end_.epoch_id(), epoch_id + 1);