tests for the const iterators as well

This commit is contained in:
Crzyrndm 2018-08-05 12:55:33 +12:00
parent e01f461b64
commit 2d2f825f64
2 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,8 @@ public:
iter = temp--;
xlnt_assert_equals((*iter).title(), "Sheet2");
xlnt_assert_equals((*temp).title(), "Sheet1");
xlnt_assert_equals(xlnt::const_worksheet_iterator{}, xlnt::const_worksheet_iterator{});
}
void test_get_index()

View File

@ -607,6 +607,9 @@ public:
xlnt_assert_equals(cell.value<std::string>(), cell.reference().to_string());
}
}
xlnt_assert_equals(xlnt::const_cell_iterator{}, xlnt::const_cell_iterator{});
xlnt_assert_equals(xlnt::const_range_iterator{}, xlnt::const_range_iterator{});
}
void test_const_reverse_iterators()