Fix tests

This commit is contained in:
sharkdp committed 2020-03-09 20:23:46 +01:00
1 parent f71ad1e00d
commit f9cb2bc872
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -16,5 +16,5 @@ fn main() {
let border_style = BorderStyle::Unicode;
let mut printer = Printer::new(&mut handle, show_color, border_style, use_squeezing);
printer.print_all(&input[..], None).unwrap();
printer.print_all(&input[..]).unwrap();
}
+2 -2
View File
@@ -448,7 +448,7 @@ mod tests {
let mut output = vec![];
let mut printer = Printer::new(&mut output, false, BorderStyle::Unicode, true);
printer.print_all(input, None).unwrap();
printer.print_all(input).unwrap();
let actual_string: &str = str::from_utf8(&output).unwrap();
assert_eq!(actual_string, expected_string)
@@ -493,7 +493,7 @@ mod tests {
Printer::new(&mut output, false, BorderStyle::Unicode, true);
printer.display_offset(0xdeadbeef);
printer.print_all(input, None).unwrap();
printer.print_all(input).unwrap();
let actual_string: &str = str::from_utf8(&output).unwrap();
assert_eq!(actual_string, expected_string)