Skip to content

Commit

Permalink
Remove self assignment in TrieTests.cpp to avoid -Wself-assign-overlo…
Browse files Browse the repository at this point in the history
…aded warnings

Summary: As above

Reviewed By: udippant

Differential Revision: D53812851

fbshipit-source-id: 5570ed7cf21b8cac6d54122559688eb444af8497
  • Loading branch information
Stuart Clark authored and facebook-github-bot committed Feb 15, 2024
1 parent 9a24a4e commit 664737d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mcrouter/lib/fbi/cpp/test/TrieTests.cpp
Expand Up @@ -181,15 +181,6 @@ TEST(Trie, ConstructorTest) {
}
EXPECT_TRUE(trie2.find("z") == trie2.end());

trie2 = trie2;

for (auto i = 0; i < nk; ++i) {
EXPECT_TRUE(trie.find(k[i])->second == i);
EXPECT_TRUE(trie2.find(k[i])->second == i);
EXPECT_TRUE(trie.find(k[i]) != trie2.find(k[i]));
}
EXPECT_TRUE(trie2.find("z") == trie2.end());

// clear
trie2.clear();
for (auto i = 0; i < nk; ++i) {
Expand Down

0 comments on commit 664737d

Please sign in to comment.