mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-30 21:56:53 -06:00
Fix the spill test: clone the workbook out of its Arc (#2053)
This commit is contained in:
@@ -26,7 +26,7 @@ fn copied_sheet_keeps_spill_values_through_full_recalc() {
|
||||
let before = value(&s, "Grades (2)", "J55");
|
||||
assert!(matches!(before, Value::Number(_)), "J55 should hold a spilled number, got {before:?}");
|
||||
|
||||
let mut fresh = s.doc().unwrap().wb.clone();
|
||||
let mut fresh = (*s.doc().unwrap().wb).clone();
|
||||
Calc::new().recalc_all(&mut fresh);
|
||||
let after = fresh.sheet(fresh.sheet_index("Grades (2)").unwrap()).unwrap().value(CellRef::parse("J55").unwrap());
|
||||
assert_eq!(before, after);
|
||||
|
||||
Reference in New Issue
Block a user