cargo fmt

add_libdifftastic
Wilfred Hughes 2022-09-01 09:19:16 +07:00
parent 8ff572d615
commit efa75b16c8
1 changed files with 9 additions and 3 deletions

@ -223,11 +223,17 @@ mod tests {
#[test] #[test]
fn test_plaintext_is_text() { fn test_plaintext_is_text() {
let s = "hello world"; let s = "hello world";
assert!(matches!(guess_content(s.as_bytes()), ProbableFileKind::Text(_))); assert!(matches!(
guess_content(s.as_bytes()),
ProbableFileKind::Text(_)
));
} }
#[test] #[test]
fn test_null_bytes_are_binary() { fn test_null_bytes_are_binary() {
let s = "\0".repeat(1000); let s = "\0".repeat(1000);
assert!(matches!(guess_content(s.as_bytes()), ProbableFileKind::Binary)); assert!(matches!(
guess_content(s.as_bytes()),
ProbableFileKind::Binary
));
} }
} }