forked from OSchip/llvm-project
Add test for default construction coverage of DenseSet iterators.
This is a follow-up to D28999. llvm-svn: 292885
This commit is contained in:
parent
73039d2cac
commit
69440378bf
|
@ -73,7 +73,7 @@ TYPED_TEST(DenseSetTest, InitializerList) {
|
|||
EXPECT_EQ(0u, set.count(3));
|
||||
}
|
||||
|
||||
TYPED_TEST(DenseSetTest, ConstIteratorComparison){
|
||||
TYPED_TEST(DenseSetTest, ConstIteratorComparison) {
|
||||
TypeParam set({1});
|
||||
const TypeParam &cset = set;
|
||||
EXPECT_EQ(set.begin(), cset.begin());
|
||||
|
@ -82,6 +82,13 @@ TYPED_TEST(DenseSetTest, ConstIteratorComparison){
|
|||
EXPECT_NE(set.begin(), cset.end());
|
||||
}
|
||||
|
||||
TYPED_TEST(DenseSetTest, DefaultConstruction) {
|
||||
typename TypeParam::iterator I, J;
|
||||
typename TypeParam::const_iterator CI, CJ;
|
||||
EXPECT_EQ(I, J);
|
||||
EXPECT_EQ(CI, CJ);
|
||||
}
|
||||
|
||||
TYPED_TEST(DenseSetTest, EmptyInitializerList) {
|
||||
TypeParam set({});
|
||||
EXPECT_EQ(0u, set.size());
|
||||
|
|
Loading…
Reference in New Issue