mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
37 lines
774 B
Rust
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,
|
|
);
|
|
}
|