File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1897,3 +1897,26 @@ fn issue_391_shared_formula() {
1897
1897
assert_eq ! ( expect. end( ) , res. end( ) ) ;
1898
1898
assert ! ( expect. cells( ) . eq( res. cells( ) ) ) ;
1899
1899
}
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
+ }
You can’t perform that action at this time.
0 commit comments