From 539b0f778e0dd1edacfc40e127644ad2416e57f4 Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Wed, 20 Jul 2016 20:10:19 -0400 Subject: [PATCH] easy test --- source/cell/tests/test_cell.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/cell/tests/test_cell.hpp b/source/cell/tests/test_cell.hpp index 399cf7ba..b6d076c0 100644 --- a/source/cell/tests/test_cell.hpp +++ b/source/cell/tests/test_cell.hpp @@ -622,4 +622,13 @@ public: TS_ASSERT(xlnt::cell_reference("A2") > xlnt::cell_reference("A1")); TS_ASSERT(xlnt::cell_reference("A2") >= xlnt::cell_reference("A2")); } + + void test_anchor() + { + xlnt::workbook wb; + xlnt::cell cell(wb.get_active_sheet(), "A1"); + auto anchor = cell.get_anchor(); + TS_ASSERT_EQUALS(anchor.first, 0); + TS_ASSERT_EQUALS(anchor.second, 0); + } };