From c2bb9dd433cc7b735dfb6ef8b75bf960e8bcbe90 Mon Sep 17 00:00:00 2001 From: 353fc443 <353fc443@pm.me> Date: Fri, 11 Feb 2022 13:02:06 +0000 Subject: [PATCH] Fix clippy octal-escapes warning --- tests/by-util/test_cut.rs | 4 ++-- tests/by-util/test_head.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/by-util/test_cut.rs b/tests/by-util/test_cut.rs index 3a1b577ef..da707ac3a 100644 --- a/tests/by-util/test_cut.rs +++ b/tests/by-util/test_cut.rs @@ -128,9 +128,9 @@ fn test_complement() { fn test_zero_terminated() { new_ucmd!() .args(&["-d_", "-z", "-f", "1"]) - .pipe_in("9_1\n8_2\n\07_3") + .pipe_in("9_1\n8_2\n\x007_3") .succeeds() - .stdout_only("9\07\0"); + .stdout_only("9\x007\0"); } #[test] diff --git a/tests/by-util/test_head.rs b/tests/by-util/test_head.rs index 25410d76f..e3f4e79aa 100644 --- a/tests/by-util/test_head.rs +++ b/tests/by-util/test_head.rs @@ -220,9 +220,9 @@ fn test_zero_terminated() { fn test_obsolete_extras() { new_ucmd!() .args(&["-5zv"]) - .pipe_in("1\02\03\04\05\06") + .pipe_in("1\x002\x003\x004\x005\x006") .succeeds() - .stdout_is("==> standard input <==\n1\02\03\04\05\0"); + .stdout_is("==> standard input <==\n1\x002\x003\x004\x005\0"); } #[test]