// Step 1915: LSPCompletionMerger // Collects CompletionItem lists from multiple sources; deduplicates by label. // // t1: addItems and getItems from one source // t2: two sources with disjoint labels → both present // t3: two sources with overlapping label → deduplicated // t4: clearSource removes one source without affecting others // t5: clearAll empties; uniqueCount and sourceCount #include "LSPCompletionMerger.h" #include #include namespace ws = whetstone; static int p=0,f=0; #define T(n) { std::cout<<" "<<#n<<"... "; } #define P() { std::cout<<"PASS\n"; ++p; } #define F(m) { std::cout<<"FAIL: "< 0 ? 1 : 0; }