This commit is contained in:
Andrew Phillips
2026-02-19 13:57:39 -04:00
parent a72395fe83
commit fdeb5f7951
82 changed files with 2756 additions and 2018 deletions

View File

@@ -6,7 +6,7 @@ mod tests {
fn test_is_binary_text() {
let text_data = b"Hello, World! This is plain text.\nWith newlines and spaces.";
let result = is_binary(text_data);
// Text data should not be detected as binary
assert!(!result);
}
@@ -15,7 +15,7 @@ mod tests {
fn test_is_binary_binary() {
let binary_data = b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09";
let result = is_binary(binary_data);
// Binary data should be detected as binary
assert!(result);
}
@@ -24,7 +24,7 @@ mod tests {
fn test_is_binary_png_signature() {
let png_data = b"\x89\x50\x4E\x47\x0D\x0A\x1A\x0A";
let result = is_binary(png_data);
// PNG signature should be detected as binary
assert!(result);
}
@@ -33,7 +33,7 @@ mod tests {
fn test_is_binary_empty() {
let empty_data = b"";
let result = is_binary(empty_data);
// Empty data should not be detected as binary
assert!(!result);
}