diff --git a/test/stl/CMakeLists.txt b/test/stl/CMakeLists.txt index adf98d8760..8107a07dab 100644 --- a/test/stl/CMakeLists.txt +++ b/test/stl/CMakeLists.txt @@ -4,5 +4,5 @@ set(test_sources ${test_sources} ${dir}/vector_memory_adapter_test.cpp ${dir}/complex_datatype_trait_test.cpp - ${dir}/fixed_utf8_string_test.cpp + ${dir}/string_types_test.cpp PARENT_SCOPE) diff --git a/test/stl/fixed_utf8_string_test.cpp b/test/stl/string_types_test.cpp similarity index 94% rename from test/stl/fixed_utf8_string_test.cpp rename to test/stl/string_types_test.cpp index 8f2a2b54c6..347b33c52a 100644 --- a/test/stl/fixed_utf8_string_test.cpp +++ b/test/stl/string_types_test.cpp @@ -83,11 +83,13 @@ TYPED_TEST(BaseStringTest, test_copy_assignment) { TypeParam new_string; new_string = this->original_string; + EXPECT_EQ(this->original_string, new_string); } TYPED_TEST(BaseStringTest, test_move_assignment) { TypeParam new_string; - new_string = std::move(this->original_string); + new_string = std::move(this->temp_string); + EXPECT_EQ(this->original_string, new_string); }