cleanup imports
Some checks failed
Test Rust project / test (ubuntu-latest, stable) (push) Failing after 41s

This commit is contained in:
2026-01-27 13:50:00 -07:00
parent 0c78e7834b
commit 077b53f6ff
4 changed files with 16 additions and 3 deletions

View File

@@ -851,6 +851,19 @@ fn parse_csv() {
);
}
#[test]
fn invalid_ranges() {
let mut grid = Grid::new();
grid.set_cell("A0", 2.);
grid.set_cell("A1", 1.);
// ASCII to number conversion needs to not overflow
grid.set_cell("B0", "=sum($:A)".to_string());
let cell = grid.get_cell("B0").as_ref().expect("Just set it");
let _ = grid.evaluate(&cell.to_string()).expect("Should evaluate.");
}
#[test]
fn ranges() {
let mut grid = Grid::new();