[llvm-commits] [llvm] r151999 - /llvm/trunk/unittests/ADT/HashingTest.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Mar 4 02:23:11 PST 2012
Author: chandlerc
Date: Sun Mar 4 04:23:11 2012
New Revision: 151999
URL: http://llvm.org/viewvc/llvm-project?rev=151999&view=rev
Log:
Split this test up into two smaller, and more focused tests.
Modified:
llvm/trunk/unittests/ADT/HashingTest.cpp
Modified: llvm/trunk/unittests/ADT/HashingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/HashingTest.cpp?rev=151999&r1=151998&r2=151999&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/HashingTest.cpp (original)
+++ llvm/trunk/unittests/ADT/HashingTest.cpp Sun Mar 4 04:23:11 2012
@@ -70,7 +70,9 @@
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)));
More information about the llvm-commits
mailing list