clap/tests/nushell.rs

50 lines
1,015 B
Rust
Raw Normal View History

2022-10-22 23:27:04 +08:00
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,
);
}
2022-10-31 18:32:40 +08:00
#[test]
fn aliases() {
let name = "my-app";
let cmd = common::aliases_command(name);
common::assert_matches_path(
"tests/snapshots/aliases.nu",
clap_complete_nushell::Nushell,
cmd,
name,
);
}
2022-10-22 23:27:04 +08:00
#[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,
);
}