1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Minor cleanup for unittest:

* Fixed {copy,assignment} constructor test names
* s/EXPECT_EQ(true, ...)/ASSERT_TRUE(...)/

Patch by Talin.

llvm-svn: 61883
This commit is contained in:
Misha Brukman 2009-01-07 21:13:53 +00:00
parent 3571fbfba8
commit c3fe8ccf6d

View File

@ -125,7 +125,7 @@ TEST_F(DenseMapTest, InsertTest) {
}
// Test copy constructor method
TEST_F(DenseMapTest, AssignmentTest) {
TEST_F(DenseMapTest, CopyConstructorTest) {
uintMap[0] = 1;
DenseMap<uint32_t, uint32_t> copyMap(uintMap);
@ -134,7 +134,7 @@ TEST_F(DenseMapTest, AssignmentTest) {
}
// Test assignment operator method
TEST_F(DenseMapTest, CopyConstructorTest) {
TEST_F(DenseMapTest, AssignmentTest) {
uintMap[0] = 1;
DenseMap<uint32_t, uint32_t> copyMap = uintMap;
@ -160,7 +160,7 @@ TEST_F(DenseMapTest, IterationTest) {
// Ensure every number was visited.
for (int i = 0; i < 100; ++i) {
EXPECT_EQ(true, visited[i]);
ASSERT_TRUE(visited[i]) << "Entry #" << i << " was never visited";
}
}