diff options
author | Håvard Pettersen <havardpe@oath.com> | 2021-01-11 12:38:04 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2021-01-11 12:38:04 +0000 |
commit | 9c38881ee2f8f61cb51d8f41de5feba36efa422b (patch) | |
tree | 8f726f040328582516736b3ef4d21bd35c194673 /vespalib/src/tests/shared_string_repo | |
parent | 32292572be63bf1725d34e4c071cd6690ecd43e8 (diff) |
fixup after PR comments
Diffstat (limited to 'vespalib/src/tests/shared_string_repo')
-rw-r--r-- | vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp b/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp index d560513e24d..aaf4a5e3e56 100644 --- a/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp +++ b/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp @@ -307,6 +307,12 @@ TEST("require that handle/string can be obtained from string_id") { EXPECT_EQUAL(Handle::string_from_id(b.id()), vespalib::string("str")); } +TEST("require that handle can be self-assigned") { + Handle a("foo"); + a = a; + EXPECT_EQUAL(a.as_string(), vespalib::string("foo")); +} + //----------------------------------------------------------------------------- TEST("require that basic multi-handle usage works") { |