From bc410d88353aa0ac91ca0b944cc1d747d4ee405b Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Wed, 15 Jun 2016 13:36:03 +0100 Subject: [PATCH] uncomment test_reverse_column_major_iterators --- source/worksheet/tests/test_worksheet.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/source/worksheet/tests/test_worksheet.hpp b/source/worksheet/tests/test_worksheet.hpp index 4d72251a..e08d13b8 100644 --- a/source/worksheet/tests/test_worksheet.hpp +++ b/source/worksheet/tests/test_worksheet.hpp @@ -799,22 +799,22 @@ public: auto columns = ws.columns(); auto column_iter = columns.rbegin(); - *column_iter; - /* + auto first_column = *column_iter; + auto first_column_iter = first_column.rbegin(); - auto &first_cell = *first_column_iter; + auto first_cell = *first_column_iter; TS_ASSERT_EQUALS(first_cell.get_value(), "C2"); first_column_iter++; - auto &second_cell = *first_column_iter; + auto second_cell = *first_column_iter; TS_ASSERT_EQUALS(second_cell.get_value(), "C1"); - auto &last_column = *(--columns.rend()); + auto last_column = *(--columns.rend()); auto last_column_iter = last_column.rend(); last_column_iter--; - auto &last_cell = *last_column_iter; + auto last_cell = *last_column_iter; TS_ASSERT_EQUALS(last_cell.get_value(), "A1"); last_column_iter--; - auto &penultimate_cell = *last_column_iter; + auto penultimate_cell = *last_column_iter; TS_ASSERT_EQUALS(penultimate_cell.get_value(), "A2"); for (auto column_iter = columns.rbegin(); column_iter != columns.rend(); ++column_iter) @@ -828,7 +828,6 @@ public: TS_ASSERT_EQUALS(cell.get_value(), cell.get_reference().to_string()); } } - */ } void test_const_column_major_iterators()