This commit is contained in:
nora 2021-03-27 11:45:07 +01:00
parent 6af99b1989
commit ea468cdf1b
2 changed files with 2 additions and 2 deletions

BIN
img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Before After
Before After

View file

@ -142,6 +142,7 @@ fn draw(values: &Vec<Vec<u32>>, iterations: u32) -> String {
}
static BAR_SIZE: usize = 50;
fn progress_bar(progress: f64) -> String {
let mut bar = String::from("[");
let bar_amount = (BAR_SIZE as f64 * progress).round() as usize;
@ -369,7 +370,6 @@ mod tests {
let out = draw(vector, 10);
println!("{}", out);
assert_eq!(out, " ###
###
")
###")
}
}