mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
Name the test case type (clippy type_complexity)
This commit is contained in:
1 parent
57e0eb5b0f
commit
4f372ff470
1 file changed
+2
-1
@@ -398,7 +398,8 @@ mod tests {
|
||||
#[test]
|
||||
fn every_kind_of_change_renders_the_charts_again_exactly_once() {
|
||||
let mut h = harness(two_charts());
|
||||
let cases: Vec<(&str, Box<dyn Fn(&mut Harness)>)> = vec![
|
||||
type Case<'a> = (&'a str, Box<dyn Fn(&mut Harness)>);
|
||||
let cases: Vec<Case> = vec![
|
||||
("cell edit", Box::new(|h| exec(h, "cell.set", json!({"cell": "B5", "input": "99"})))),
|
||||
("recalc through a dependency", Box::new(|h| exec(h, "cell.set", json!({"cell": "B2", "input": "7"})))),
|
||||
("calculate now", Box::new(|h| exec(h, "formulas.calculateNow", json!({})))),
|
||||
|
||||
Reference in new issue
Block a user