mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
refactor(uptime): some minor improvements
This commit is contained in:
parent
a3f3a050a8
commit
8bd533ffe8
4 changed files with 49 additions and 45 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue