Type parameterize the DenseMap unit tests.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 16 Jun 2012 01:31:33 +0000 (01:31 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 16 Jun 2012 01:31:33 +0000 (01:31 +0000)
commite5c7bc65c30feabed5f05eecee1ff1433e35d381
treeb0c3888a3c0a1577f9d58b34bd9cbdc3486a6b51
parent48f4dcf0f7fd64df00839018d633944bc2464501
Type parameterize the DenseMap unit tests.

These were already trying to be type parameterized over different
key/value pairs. I've realized this goal using GoogleTest's typed test
functionality. This allows us to easily replicate the tests across
different key/value combinations and soon different mapping templates.

I've fixed a few bugs in the tests and extended them a bit in the
process as many tests were only applying to the int->int mapping.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158589 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ADT/DenseMapTest.cpp