clap/tests/nushell.rs
2022-11-11 21:35:21 +08:00

37 lines
774 B
Rust

mod common;
#[test]
fn basic() {
let name = "my-app";
let cmd = common::basic_command(name);
common::assert_matches_path(
"tests/snapshots/basic.nu",
clap_complete_nushell::Nushell,
cmd,
name,
);
}
#[test]
fn feature_sample() {
let name = "my-app";
let cmd = common::feature_sample_command(name);
common::assert_matches_path(
"tests/snapshots/feature_sample.nu",
clap_complete_nushell::Nushell,
cmd,
name,
);
}
#[test]
fn sub_subcommands() {
let name = "my-app";
let cmd = common::sub_subcommands_command(name);
common::assert_matches_path(
"tests/snapshots/sub_subcommands.nu",
clap_complete_nushell::Nushell,
cmd,
name,
);
}