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:
parent
8427681d7c
commit
9f9c0ac4a1
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Reference in New Issue