[llvm] [ADT] Document the UniquingSet contracts. NFC (PR #221860)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 21:07:06 PDT 2026
================
@@ -635,6 +635,10 @@ TEST(UniquingSetTest, Basic) {
KeyedPair B(2, 1);
Set.insert(&B, Token);
+ KeyedPair ADup(1, 2);
+ EXPECT_EQ(&A, Set.getOrInsert(&ADup));
+ EXPECT_EQ(2u, Set.size());
----------------
MaskRay wrote:
Improved unittest!
https://github.com/llvm/llvm-project/pull/221860
More information about the llvm-commits
mailing list