Merge pull request #4190 from storytold/fix/oversized-pivot-cache-warning-text

Tests: the oversized pivot cache warning names the part limit (main is red)
This commit is contained in:
FredApps authored and GitHub committed 2026-11-14 18:29:41 +01:00
commit f2044337c7
1 file changed
+2 -1
+2 -1
View File
@@ -751,7 +751,8 @@ fn oversized_pivot_cache_warns() {
let (wb, report) = read_xlsx(&bytes).unwrap(); let (wb, report) = read_xlsx(&bytes).unwrap();
assert_eq!(wb.sheet(0).unwrap().name, "Data"); assert_eq!(wb.sheet(0).unwrap().name, "Data");
assert!(wb.sheet(0).unwrap().pivots.is_empty()); assert!(wb.sheet(0).unwrap().pivots.is_empty());
let lost = format!("a PivotTable's cache is too large to read ({CACHE_PART} expands to {declared} bytes); kept as plain cells"); let limit = crate::package::MAX_PART;
let lost = format!("a PivotTable's cache is too large to read ({CACHE_PART} expands to more than {limit} bytes); kept as plain cells");
assert!(report.warnings.contains(&lost), "{:?}", report.warnings); assert!(report.warnings.contains(&lost), "{:?}", report.warnings);
} }