mirror of
https://github.com/nushell/nushell.git
synced 2024-12-18 05:02:06 +01:00
13 lines
340 B
Rust
13 lines
340 B
Rust
|
mod helpers;
|
||
|
|
||
|
use helpers::in_directory as cwd;
|
||
|
|
||
|
#[test]
|
||
|
fn external_command() {
|
||
|
// Echo should exist on all currently supported platforms. A better approach might
|
||
|
// be to generate a dummy executable as part of the tests with known semantics.
|
||
|
nu!(output, cwd("tests/fixtures"), "echo 1");
|
||
|
|
||
|
assert!(output.contains("1"));
|
||
|
}
|