Skip to content

Commit

Permalink
Add copy ctor test
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Feb 8, 2024
1 parent 00b6f8f commit 19f6333
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/gtest/hvec_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ TEST(hvec_map, string_map) {
}
m1 = m;

hvec_map<std::string, std::string> m2(m);

EXPECT_EQ(m1.size(), 100);
for (int i = 1; i <= 100; i += 2) m1.erase(std::to_string(i));
EXPECT_EQ(m1.size(), 50);
Expand Down

0 comments on commit 19f6333

Please sign in to comment.