Skip to content

Commit

Permalink
Merge pull request #1274 from jqnatividad/excel-formula-empty-string-…
Browse files Browse the repository at this point in the history
…value

`excel`: we can now open workbooks with formulas set to an empty string value
  • Loading branch information
jqnatividad authored Sep 2, 2023
2 parents 7b7b887 + 0720a24 commit e391582
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Binary file added resources/test/formula_empty_string_value.xls
Binary file not shown.
12 changes: 12 additions & 0 deletions tests/test_excel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit e391582

Please sign in to comment.