Skip to content

Commit 95c6e39

Browse files
committed
Add test
1 parent f4ae6ff commit 95c6e39

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

tests/empty_s_attribute.xlsx

7.52 KB
Binary file not shown.

tests/test.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,3 +1897,26 @@ fn issue_391_shared_formula() {
18971897
assert_eq!(expect.end(), res.end());
18981898
assert!(expect.cells().eq(res.cells()));
18991899
}
1900+
1901+
#[test]
1902+
fn issue_420_empty_s_attribute() {
1903+
setup();
1904+
1905+
let path = format!(
1906+
"{}/tests/empty_s_attribute.xlsx",
1907+
env!("CARGO_MANIFEST_DIR")
1908+
);
1909+
let mut excel: Xlsx<_> = open_workbook(&path).unwrap();
1910+
1911+
let range = excel.worksheet_range("Sheet1").unwrap();
1912+
range_eq!(
1913+
range,
1914+
[
1915+
[String("Name".to_string()), String("Value".to_string())],
1916+
[String("John".to_string()), Float(1.)],
1917+
[String("Sophia".to_string()), Float(2.)],
1918+
[String("Peter".to_string()), Float(3.)],
1919+
[String("Sam".to_string()), Float(4.)],
1920+
]
1921+
);
1922+
}

0 commit comments

Comments
 (0)