Skip to content

Commit 6970753

Browse files
Update src/escape.rs
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 67d0885 commit 6970753

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/escape.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ mod tests {
5555
use super::*;
5656

5757
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);
58+
test_escape_from_bytes(input.as_bytes(), expected.as_bytes())
6259
}
6360

6461
fn test_escape_from_bytes(input: &[u8], expected: &[u8]) {

0 commit comments

Comments
 (0)