From 9aca24365faef34214d78bd242493b3442a26a41 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 18 Dec 2024 14:44:12 +0100 Subject: [PATCH] cut: simplify test by removing assert_eq! calls --- tests/by-util/test_cut.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/by-util/test_cut.rs b/tests/by-util/test_cut.rs index fe20b5de6..e4c93cd75 100644 --- a/tests/by-util/test_cut.rs +++ b/tests/by-util/test_cut.rs @@ -293,12 +293,11 @@ fn test_newline_delimited() { #[test] fn test_multiple() { - let result = new_ucmd!() + new_ucmd!() .args(&["-f2", "-d:", "-d="]) .pipe_in("a=b\n") - .succeeds(); - assert_eq!(result.stdout_str(), "b\n"); - assert_eq!(result.stderr_str(), ""); + .succeeds() + .stdout_only("b\n"); } #[test]