Merge branch 'main' into worktree-improvise-ewi-formula-crate
This commit is contained in:
@@ -222,7 +222,8 @@ impl ImportPipeline {
|
||||
if let Some(val) = map.get(&measure.field).and_then(|v| v.as_f64()) {
|
||||
let mut cell_coords = coords.clone();
|
||||
cell_coords.push(("_Measure".to_string(), measure.field.clone()));
|
||||
wb.model.set_cell(CellKey::new(cell_coords), CellValue::Number(val));
|
||||
wb.model
|
||||
.set_cell(CellKey::new(cell_coords), CellValue::Number(val));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1112,6 +1113,9 @@ mod tests {
|
||||
("Date_Month".to_string(), "2026-03".to_string()),
|
||||
("_Measure".to_string(), "Amount".to_string()),
|
||||
]);
|
||||
assert_eq!(wb.model.get_cell(&key).and_then(|v| v.as_f64()), Some(100.0));
|
||||
assert_eq!(
|
||||
wb.model.get_cell(&key).and_then(|v| v.as_f64()),
|
||||
Some(100.0)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user