From 2d2f825f64d06e9eaa011f9d9206410cde35e1b0 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Sun, 5 Aug 2018 12:55:33 +1200 Subject: [PATCH] tests for the const iterators as well --- tests/workbook/workbook_test_suite.cpp | 2 ++ tests/worksheet/worksheet_test_suite.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/workbook/workbook_test_suite.cpp b/tests/workbook/workbook_test_suite.cpp index 73dff8f5..9f155087 100644 --- a/tests/workbook/workbook_test_suite.cpp +++ b/tests/workbook/workbook_test_suite.cpp @@ -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() diff --git a/tests/worksheet/worksheet_test_suite.cpp b/tests/worksheet/worksheet_test_suite.cpp index 9a3df915..f324eb4e 100644 --- a/tests/worksheet/worksheet_test_suite.cpp +++ b/tests/worksheet/worksheet_test_suite.cpp @@ -607,6 +607,9 @@ public: xlnt_assert_equals(cell.value(), 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()