From 2468e84a10fc3fd275fe9dea860594bebdda65af Mon Sep 17 00:00:00 2001 From: Richard Patel Date: Thu, 23 Apr 2020 08:13:32 +0200 Subject: [PATCH] fix tests --- src/sparkline.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sparkline.rs b/src/sparkline.rs index 89f4503..45cd4c1 100644 --- a/src/sparkline.rs +++ b/src/sparkline.rs @@ -172,17 +172,17 @@ mod tests { #[test] fn it_does_not_panic_if_max_is_zero() { - let mut widget = Sparkline::default().data(&[0, 0, 0]); + let widget = Sparkline::default().data(&[0, 0, 0]); let area = Rect::new(0, 0, 3, 1); let mut buffer = Buffer::empty(area); - widget.draw(area, &mut buffer); + widget.render(area, &mut buffer); } #[test] fn it_does_not_panic_if_max_is_set_to_zero() { - let mut widget = Sparkline::default().data(&[0, 1, 2]).max(0); + let widget = Sparkline::default().data(&[0, 1, 2]).max(0); let area = Rect::new(0, 0, 3, 1); let mut buffer = Buffer::empty(area); - widget.draw(area, &mut buffer); + widget.render(area, &mut buffer); } }