Add test for default construction coverage of DenseSet iterators.

This is a follow-up to D28999.

llvm-svn: 292885
This commit is contained in:
Dean Michael Berris 2017-01-24 05:29:40 +00:00
parent 73039d2cac
commit 69440378bf
1 changed files with 8 additions and 1 deletions

View File

@ -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());