mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests/util
: Don't trim output in CmdResult::stdout_matches
and stdout_does_not_match
(#4304)
* tests/util: Fix documentation of UCommand::stderr_only and usage_error * tests/util: Remove trimming from CmdResult::stdout_matches and stdout_does_not_match. Fix tests. The tests are fixed to match the trailing newline instead of ignoring it.
This commit is contained in:
parent
ff5000d4d0
commit
f610f33aa7
6 changed files with 15 additions and 15 deletions
|
@ -49,5 +49,5 @@ fn test_long_output() {
|
|||
.ucmd()
|
||||
.arg("-l")
|
||||
.succeeds()
|
||||
.stdout_matches(&Regex::new("[rwx-]{10}.*some-file1$").unwrap());
|
||||
.stdout_matches(&Regex::new("[rwx-]{10}.*some-file1\n$").unwrap());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue