Skip to content

Commit a93c437

Browse files
committed
fix: broken bar graph test
1 parent 8b8b6e7 commit a93c437

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tui-bar-graph/src/lib.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ mod tests {
283283

284284
#[test]
285285
fn test_render() {
286-
let data = vec![1.0, 2.0, 3.0, 4.0, 5.0];
286+
let data = vec![0.0, 1.0, 2.0, 3.0, 4.0, 5.0];
287287
let bar_graph = BarGraph::new(data);
288288

289289
let mut buf = Buffer::empty(Rect::new(0, 0, 10, 10));
@@ -292,16 +292,16 @@ mod tests {
292292
assert_eq!(
293293
buf,
294294
Buffer::with_lines(vec![
295-
"⠀⠀⡇ ",
296-
"⠀⠀⡇ ",
297-
"⠀⢠⡇ ",
298-
"⠀⢸⡇ ",
299-
"⠀⢸⡇ ",
300-
"⠀⣿⡇ ",
301-
"⠀⣿⡇ ",
302-
"⢠⣿⡇ ",
303-
"⢸⣿ ",
304-
"⢸⣿ ",
295+
" ",
296+
" ",
297+
" ",
298+
" ",
299+
" ⢸⣿ ",
300+
" ⢸⣿ ",
301+
" ⣿⣿ ",
302+
" ⣿⣿ ",
303+
"⢸⣿ ",
304+
"⢸⣿ ",
305305
])
306306
);
307307
}

0 commit comments

Comments
 (0)