address review: give the test's criteria cell its stored value

This commit is contained in:
Dylan M. Taylor
2026-11-03 16:14:09 +00:00
parent a70bef54b2
commit 419960d038
+5 -1
View File
@@ -810,7 +810,11 @@ mod fuel_tests {
sheet.cells.set(at("D1"), Cell::value(Value::text("Formula")));
let host_wb = |criterion: &str| {
let mut wb = wb.clone();
wb.sheet_mut(0).unwrap().cells.set(at("D2"), Cell::formula(Formula::new(criterion)));
// A criteria cell is read by its value first (a blank one matches everything): give it
// the value a recalculation would have stored.
let mut cell = Cell::formula(Formula::new(criterion));
cell.value = Value::Bool(true);
wb.sheet_mut(0).unwrap().cells.set(at("D2"), cell);
wb
};
let run = |criterion: &str| {