mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
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:
1 file changed
+2
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user