mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-28 20:56:54 -06:00
Merge pull request #623 from MarekSpodBiedry:issue-535
This commit is contained in:
@@ -2516,6 +2516,15 @@ fn fill_series_month_clamps_to_month_end() {
|
||||
assert_eq!(v(&s, "A4"), ymd(2026, 4, 15));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fill_series_weekday_out_of_range_step_errors() {
|
||||
let mut s = s();
|
||||
s.execute("cell.set", json!({"cell": "A1", "input": "45000"})).unwrap();
|
||||
let r = s.execute("edit.fillSeries", json!({"range": "A1:A2", "direction": "columns", "type": "date", "dateUnit": "weekday", "step": 1e12}));
|
||||
assert!(r.is_err());
|
||||
assert_eq!(v(&s, "A2"), Value::Empty);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fill_series_month_leap_year() {
|
||||
let s = series_date("2028-01-31", "A1:A3", "month");
|
||||
|
||||
Reference in New Issue
Block a user