mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
tests/pinky: add --lookup test
This commit is contained in:
parent
9e3871c6c5
commit
59bf18fd00
1 changed files with 13 additions and 0 deletions
|
|
@ -90,6 +90,19 @@ fn test_short_format_i() {
|
|||
assert_eq!(v_actual, v_expect);
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_lookup() {
|
||||
let args = ["--lookup"];
|
||||
let ts = TestScenario::new(util_name!());
|
||||
let actual = ts.ucmd().args(&args).succeeds().stdout_move_str();
|
||||
let expect = unwrap_or_return!(expected_result(&ts, &[])).stdout_move_str();
|
||||
let v_actual: Vec<&str> = actual.split_whitespace().collect();
|
||||
let v_expect: Vec<&str> = expect.split_whitespace().collect();
|
||||
assert_eq!(v_actual, v_expect);
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue