Change check for element uniqueness.

GitOrigin-RevId: 3a7499f3b7f1aead7ebe80f147b9ddc42c87fc33
This commit is contained in:
levlam 2019-07-23 03:53:46 +03:00
parent 38e4310b71
commit a4b67b9496

View File

@ -129,7 +129,6 @@ TEST(Port, Writev) {
#include <algorithm>
#include <mutex>
#include <set>
static std::mutex m;
static std::vector<std::string> ptrs;
@ -197,9 +196,9 @@ TEST(Post, SignalsAndThread) {
}
std::sort(ptrs.begin(), ptrs.end());
CHECK(ptrs == ans);
ASSERT_EQ(10u, std::set<int *>(addrs.begin(), addrs.end()).size());
std::sort(addrs.begin(), addrs.end());
ASSERT_TRUE(std::unique(addrs.begin(), addrs.end()) == addrs.end());
//LOG(ERROR) << addrs;
}
//ASSERT_EQ(10u, ptrs.size());
}
#endif