coreutils/tests/by-util/test_hostid.rs

13 lines
370 B
Rust
Raw Normal View History

2023-08-21 08:49:27 +00:00
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario;
use regex::Regex;
#[test]
fn test_normal() {
let re = Regex::new(r"^[0-9a-f]{8}").unwrap();
2021-04-17 23:28:06 +00:00
new_ucmd!().succeeds().stdout_matches(&re);
}