mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
Tests: the oversized pivot cache warning names the part limit
The package reader reports a part over the limit as "expands to more than <limit> bytes"; the test added in #2491 expected the declared size and failed on main.
This commit is contained in:
1 parent
c2aba7a3f4
commit
34ab393c72
1 file changed
+2
-1
@@ -751,7 +751,8 @@ fn oversized_pivot_cache_warns() {
|
||||
let (wb, report) = read_xlsx(&bytes).unwrap();
|
||||
assert_eq!(wb.sheet(0).unwrap().name, "Data");
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user