mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Add test for duplicate shared string
This commit is contained in:
parent
6471420ea8
commit
62c00744b0
|
@ -170,6 +170,20 @@ public:
|
||||||
TS_ASSERT_EQUALS(val, "Direnç");
|
TS_ASSERT_EQUALS(val, "Direnç");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test_read_shared_strings_max_range()
|
||||||
|
{
|
||||||
|
auto path = PathHelper::GetDataDirectory("/reader/shared_strings-max_range.xlsx");
|
||||||
|
|
||||||
|
xlnt::workbook wb;
|
||||||
|
xlnt::excel_serializer serializer(wb);
|
||||||
|
|
||||||
|
serializer.load_workbook(path);
|
||||||
|
|
||||||
|
auto ws = wb["Sheet1"];
|
||||||
|
auto val = ws.get_cell("A1").get_value<std::string>();
|
||||||
|
TS_ASSERT_EQUALS(val, "Donald");
|
||||||
|
}
|
||||||
|
|
||||||
xlnt::workbook date_mac_1904()
|
xlnt::workbook date_mac_1904()
|
||||||
{
|
{
|
||||||
auto path = PathHelper::GetDataDirectory("/reader/date_1904.xlsx");
|
auto path = PathHelper::GetDataDirectory("/reader/date_1904.xlsx");
|
||||||
|
|
BIN
tests/data/reader/shared_strings-max_range.xlsx
Normal file
BIN
tests/data/reader/shared_strings-max_range.xlsx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user