Test: open a workbook before setting values in the hyphenated table-name test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-12 23:43:11 -04:00
parent 8427681d7c
commit 9f9c0ac4a1
1 changed files with 1 additions and 1 deletions

View File

@ -1172,7 +1172,7 @@ fn insert_and_delete_cells_never_shift_part_of_a_table() {
#[test]
fn table_names_with_a_hyphen_are_rejected() {
let mut s = Session::new();
let mut s = s();
s.execute("range.setValues", json!({"range": "A1", "values": [["Qty"], [7]]})).unwrap();
let e = s.execute("insert.table", json!({"range": "A1:A2", "header": true, "name": "A-B"})).unwrap_err();
assert!(e.to_string().contains("not valid"), "{e}");