We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3871c commit 46dcefeCopy full SHA for 46dcefe
tests/by-util/test_pinky.rs
@@ -90,6 +90,19 @@ fn test_short_format_i() {
90
assert_eq!(v_actual, v_expect);
91
}
92
93
+#[cfg(unix)]
94
+#[test]
95
+#[cfg(not(target_os = "openbsd"))]
96
+fn test_lookup() {
97
+ let args = ["--lookup"];
98
+ let ts = TestScenario::new(util_name!());
99
+ let actual = ts.ucmd().args(&args).succeeds().stdout_move_str();
100
+ let expect = unwrap_or_return!(expected_result(&ts, &args)).stdout_move_str();
101
+ let v_actual: Vec<&str> = actual.split_whitespace().collect();
102
+ let v_expect: Vec<&str> = expect.split_whitespace().collect();
103
+ assert_eq!(v_actual, v_expect);
104
+}
105
+
106
#[cfg(unix)]
107
#[test]
108
#[cfg(not(target_os = "openbsd"))]
0 commit comments