diff --git a/Cargo.lock b/Cargo.lock index 7a47cc761..11560a294 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -912,7 +912,7 @@ checksum = "3a4f925191b4367301851c6d99b09890311d74b0d43f274c0b34c86d308a3663" [[package]] name = "calamine" version = "0.21.2" -source = "git+https://github.com/tafia/calamine?rev=a54bd9c#a54bd9cddc61a4a30475c4454efbbb2eecf9f975" +source = "git+https://github.com/jqnatividad/calamine?branch=formula_empty_string_value#18b332e0a5e44c45dfe6a8d2169e20996bc9ed99" dependencies = [ "byteorder", "chrono", diff --git a/Cargo.toml b/Cargo.toml index d903080ac..1afeb64b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -226,7 +226,7 @@ serial_test = { version = "2.0", features = ["file_locks"] } [patch.crates-io] geosuggest-core = { git = "https://github.com/estin/geosuggest", rev = "5c6b08b" } geosuggest-utils = { git = "https://github.com/estin/geosuggest", rev = "5c6b08b" } -calamine = { git = "https://github.com/tafia/calamine", rev = "a54bd9c" } +calamine = { git = "https://github.com/jqnatividad/calamine", branch = "formula_empty_string_value" } [features] default = ["mimalloc"] diff --git a/resources/test/formula_empty_string_value.xls b/resources/test/formula_empty_string_value.xls new file mode 100644 index 000000000..b70a9c411 Binary files /dev/null and b/resources/test/formula_empty_string_value.xls differ diff --git a/tests/test_excel.rs b/tests/test_excel.rs index 07d8aa84f..2c96785ee 100644 --- a/tests/test_excel.rs +++ b/tests/test_excel.rs @@ -1419,3 +1419,15 @@ fn excel_range_empty_sheet() { .is_some()); wrk.assert_err(&mut cmd); } + +#[test] +fn excel_formula_empty_string_value() { + let wrk = Workdir::new("formula_empty_string_value"); + + let xls_file = wrk.load_test_file("formula_empty_string_value.xls"); + + let mut cmd = wrk.command("excel"); + cmd.arg(xls_file); + + wrk.assert_success(&mut cmd); +}