1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37: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] #[test]
fn test_kill_list_final_new_line() { fn test_kill_list_final_new_line() {
new_ucmd!() let re = Regex::new("\\n$").unwrap();
.arg("-l") assert!(re.is_match(new_ucmd!().arg("-l").succeeds().stdout_str()));
.succeeds()
.stdout_matches(&Regex::new("[\\n\\r]$").unwrap());
} }
#[test] #[test]