mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
cover const_worksheet_iterator
This commit is contained in:
parent
60372fb145
commit
2e035bba62
|
@ -223,6 +223,15 @@ public:
|
|||
TS_ASSERT_EQUALS((*(iter++)).get_title(), "Sheet1");
|
||||
TS_ASSERT_EQUALS((*(iter++)).get_title(), "Sheet2");
|
||||
TS_ASSERT_EQUALS(iter, wb.end());
|
||||
|
||||
const auto wb_const = wb;
|
||||
|
||||
auto const_iter = wb_const.begin();
|
||||
|
||||
TS_ASSERT_EQUALS((*(const_iter++)).get_title(), "Sheet");
|
||||
TS_ASSERT_EQUALS((*(const_iter++)).get_title(), "Sheet1");
|
||||
TS_ASSERT_EQUALS((*(const_iter++)).get_title(), "Sheet2");
|
||||
TS_ASSERT_EQUALS(const_iter, wb_const.end());
|
||||
}
|
||||
|
||||
void test_copy_iterator()
|
||||
|
|
Loading…
Reference in New Issue
Block a user