mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 10:18:11 +00:00
13 lines
301 B
Rust
13 lines
301 B
Rust
use crate::common::util::*;
|
|
extern crate regex;
|
|
use self::regex::Regex;
|
|
|
|
#[test]
|
|
fn test_normal() {
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
let result = ucmd.run();
|
|
|
|
assert!(result.success);
|
|
let re = Regex::new(r"^[0-9a-f]{8}").unwrap();
|
|
assert!(re.is_match(&result.stdout.trim()));
|
|
}
|