From 90b3c41eec691797129303603d4073269aebab73 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 10 Oct 2026 15:59:42 -0400 Subject: [PATCH] Fix-up: #83's array-export test expects #156's legacy-array read (cached values refilled on recalc) Co-Authored-By: Claude Opus 5.5 --- crates/xlsx/src/tests/array_export.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/xlsx/src/tests/array_export.rs b/crates/xlsx/src/tests/array_export.rs index 3e6ea1d..d92f473 100644 --- a/crates/xlsx/src/tests/array_export.rs +++ b/crates/xlsx/src/tests/array_export.rs @@ -124,7 +124,8 @@ fn dynamic_spills_and_legacy_cse_keep_distinct_ranges() { let (back, _) = read_xlsx(&bytes).unwrap(); let sh = back.sheet(0).unwrap(); assert_eq!(sh.cell(at("A1")).unwrap().formula.as_ref().unwrap().array, Some(range("A1:A2"))); - assert_eq!(sh.value(at("A2")), Value::Number(2.0)); + // A legacy array's cached values are dropped on read: the formula fills its range on recalc (#156). + assert!(sh.cell(at("A2")).is_none()); assert_eq!(sh.cell(at("B1")).unwrap().formula.as_ref().unwrap().array, None); assert!(sh.cell(at("B2")).is_none()); assert!(sh.cell(at("B3")).is_none());