Skip to content

Commit

Permalink
Fix existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-Rumpler committed May 3, 2022
1 parent 8858f97 commit 05ed519
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/simple.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::io;

use hexyl::{BorderStyle, Printer};
use hexyl::{BorderType, InnerSeparatorStyle, OuterBorderStyle, Printer};

fn main() {
let input = vec![
Expand All @@ -13,8 +13,11 @@ fn main() {

let show_color = true;
let use_squeezing = false;
let border_style = BorderStyle::Unicode;
let border_type = BorderType::Unicode;
let hex_inner_separator_style = InnerSeparatorStyle::Visible;
let text_inner_separator_style = InnerSeparatorStyle::Visible;
let outer_border_style = OuterBorderStyle::Visible;

let mut printer = Printer::new(&mut handle, show_color, border_style, use_squeezing);
let mut printer = Printer::new(&mut handle, show_color, border_type, hex_inner_separator_style, text_inner_separator_style, outer_border_style, use_squeezing);
printer.print_all(&input[..]).unwrap();
}

0 comments on commit 05ed519

Please sign in to comment.