Test to confirm that the row spans are calculated correctly

This commit is contained in:
Kostas Dizas 2018-10-19 23:20:45 +01:00
parent dde45fd17f
commit 5decf9cf89
2 changed files with 14 additions and 0 deletions

Binary file not shown.

View File

@ -67,6 +67,7 @@ public:
register_test(test_id_gen);
register_test(test_load_file);
register_test(test_Issue279);
register_test(test_Issue353);
}
void test_active_sheet()
@ -495,5 +496,18 @@ public:
//save a copy file
wb.save("temp.xlsx");
}
void test_Issue353()
{
xlnt::workbook wb1;
wb1.load(path_helper::test_file("Issue353_first_row_empty_w_properties.xlsx"));
wb1.save("temp_issue353.xlsx");
xlnt::workbook wb2;
wb2.load("temp_issue353.xlsx");
auto ws = wb2.active_sheet();
xlnt_assert_equals(ws.row_properties(1).spans.get(), "1:8");
xlnt_assert_equals(ws.row_properties(17).spans.get(), "2:7");
}
};
static workbook_test_suite x;