Integration: #1059 delete_areas accepts a single row or column

home.deleteRows {rows:"2"} and home.deleteColumns {cols:"B"} failed with
"not a range"; delete_areas now parses with parse_lines. The PR's test
covers both.
This commit is contained in:
aiongg
2026-10-22 02:35:09 +00:00
parent 0b573362bc
commit 708c82cf2c
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1542,6 +1542,9 @@ mod tests {
s.execute("home.hideRows", json!({"rows": "1"})).unwrap();
s.execute("data.group", json!({"cols": "C"})).unwrap();
assert!(s.execute("home.deleteRows", json!({"rows": "0"})).is_err());
s.execute("home.deleteRows", json!({"rows": "2"})).unwrap();
s.execute("home.deleteColumns", json!({"cols": "B"})).unwrap();
assert_eq!(v(&mut s, "B2"), json!(4.0));
}
#[test]