mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 15:33:33 +00:00
Minor cleanup for unittest:
* Fixed {copy,assignment} constructor test names * s/EXPECT_EQ(true, ...)/ASSERT_TRUE(...)/ Patch by Talin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
177d84e048
commit
c870bb5c96
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user