style: reformat code and cleanup whitespace
Reformat code for improved readability and remove unnecessary whitespace. Co-Authored-By: fiddlerwoaroof/git-smart-commit (gemma-4-26B-A4B-it-UD-Q5_K_XL.gguf)
This commit is contained in:
@ -915,7 +915,10 @@ mod tests {
|
||||
fn formula_cell_renders_computed_value() {
|
||||
let mut m = Workbook::new("Test");
|
||||
m.add_category("Region").unwrap(); // → Column
|
||||
m.model.category_mut("_Measure").unwrap().add_item("Revenue");
|
||||
m.model
|
||||
.category_mut("_Measure")
|
||||
.unwrap()
|
||||
.add_item("Revenue");
|
||||
m.model.category_mut("_Measure").unwrap().add_item("Cost");
|
||||
// Profit is a formula target — dynamically included in _Measure
|
||||
m.model.category_mut("Region").unwrap().add_item("East");
|
||||
@ -927,7 +930,8 @@ mod tests {
|
||||
coord(&[("_Measure", "Cost"), ("Region", "East")]),
|
||||
CellValue::Number(600.0),
|
||||
);
|
||||
m.model.add_formula(parse_formula("Profit = Revenue - Cost", "_Measure").unwrap());
|
||||
m.model
|
||||
.add_formula(parse_formula("Profit = Revenue - Cost", "_Measure").unwrap());
|
||||
m.active_view_mut()
|
||||
.set_axis("_Index", crate::view::Axis::None);
|
||||
m.active_view_mut()
|
||||
|
||||
Reference in New Issue
Block a user