We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d0885 commit 6970753Copy full SHA for 6970753
src/escape.rs
@@ -55,10 +55,7 @@ mod tests {
55
use super::*;
56
57
fn test_escape_case(input: &str, expected: &str) {
58
- let input_os_str = OsStr::from_bytes(input.as_bytes());
59
- let observed_os_str = escape(input_os_str);
60
- let expected_os_str = OsStr::from_bytes(expected.as_bytes());
61
- assert_eq!(observed_os_str, expected_os_str);
+ test_escape_from_bytes(input.as_bytes(), expected.as_bytes())
62
}
63
64
fn test_escape_from_bytes(input: &[u8], expected: &[u8]) {
0 commit comments