1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

refactor(uptime): some minor improvements

This commit is contained in:
Sylvestre Ledru 2020-11-03 23:10:32 +01:00
parent a3f3a050a8
commit 8bd533ffe8
4 changed files with 49 additions and 45 deletions

View file

@ -28,3 +28,9 @@ fn test_uptime_since() {
let re = Regex::new(r"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}").unwrap();
assert!(re.is_match(&result.stdout.trim()));
}
#[test]
fn test_failed() {
let (_at, mut ucmd) = at_and_ucmd!();
ucmd.arg("willfail").fails();
}