Add test end istream_iterator

This commit is contained in:
Jean-Prost Frédéric 2019-11-24 19:04:22 +01:00
parent 112960e255
commit 1f15112ddb

View file

@ -178,6 +178,10 @@ TEST(UnCheckedIteratrTests, test_increment_istream)
EXPECT_EQ (*it, 0x0041);
EXPECT_EQ (*it, 0x0041);
EXPECT_EQ (++it, s.end());
//two end iterators are always equals
using Iter = std::istream_iterator<char>;
EXPECT_EQ(it, iterator<Iter>(Iter{}));
EXPECT_EQ(iterator<Iter>(Iter{}), iterator<Iter>(Iter{}));
}
TEST(UnCheckedIteratrTests, test_increment_string)