mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Test to confirm that the row spans are calculated correctly
This commit is contained in:
parent
dde45fd17f
commit
5decf9cf89
BIN
tests/data/Issue353_first_row_empty_w_properties.xlsx
Normal file
BIN
tests/data/Issue353_first_row_empty_w_properties.xlsx
Normal file
Binary file not shown.
@ -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;
|
Loading…
x
Reference in New Issue
Block a user