From c7fd289816a4eb3186cb6976560b66b065f6059b Mon Sep 17 00:00:00 2001 From: daa Date: Fri, 21 Apr 2017 22:15:32 +0300 Subject: [PATCH] Fix test --- src/ui_model.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ui_model.rs b/src/ui_model.rs index b90392c..5af4c6e 100644 --- a/src/ui_model.rs +++ b/src/ui_model.rs @@ -446,10 +446,16 @@ mod tests { let mut list = ModelRectVec::new(ModelRect::point(5, 5)); let neighbor = ModelRect::point(6, 5); - let not_neighbor = ModelRect::point(6, 6); list.join(neighbor); assert_eq!(1, list.list.len()); + } + + #[test] + fn test_model_vec_no_join() { + let mut list = ModelRectVec::new(ModelRect::point(5, 5)); + + let not_neighbor = ModelRect::point(6, 6); list.join(not_neighbor); assert_eq!(2, list.list.len());