1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

fix kill list final new line test

This commit is contained in:
Smicry 2021-09-14 23:56:08 +08:00
parent db21fef95d
commit 89428a77f3

View file

@ -58,10 +58,8 @@ fn test_kill_list_all_signals() {
#[test]
fn test_kill_list_final_new_line() {
new_ucmd!()
.arg("-l")
.succeeds()
.stdout_matches(&Regex::new("[\\n\\r]$").unwrap());
let re = Regex::new("\\n$").unwrap();
assert!(re.is_match(new_ucmd!().arg("-l").succeeds().stdout_str()));
}
#[test]