projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6632ba
)
Split this test up into two smaller, and more focused tests.
author
Chandler Carruth
<chandlerc@gmail.com>
Sun, 4 Mar 2012 10:23:11 +0000
(10:23 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Sun, 4 Mar 2012 10:23:11 +0000
(10:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151999
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/ADT/HashingTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/ADT/HashingTest.cpp
b/unittests/ADT/HashingTest.cpp
index c89ca14a0703fa201412d664d04d51caff8b2aa3..f00cac253f5a53b6af2e6afb48876a484e599493 100644
(file)
--- a/
unittests/ADT/HashingTest.cpp
+++ b/
unittests/ADT/HashingTest.cpp
@@
-70,7
+70,9
@@
TEST(HashingTest, HashValueBasicTest) {
EXPECT_EQ(hash_value(c), hash_value('x'));
EXPECT_EQ(hash_value('4'), hash_value('0' + 4));
EXPECT_EQ(hash_value(addr), hash_value(&y));
+}
+TEST(HashingTest, HashValueStdPair) {
EXPECT_EQ(hash_combine(42, 43), hash_value(std::make_pair(42, 43)));
EXPECT_NE(hash_combine(43, 42), hash_value(std::make_pair(42, 43)));
EXPECT_NE(hash_combine(42, 43), hash_value(std::make_pair(42ull, 43ull)));