diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-06-09 21:08:20 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-06-09 22:23:16 +0800 |
| commit | 514929c3b8ee0d4f540be5eb4bc8c1a10e62095d (patch) | |
| tree | 8faeeb71075a695354496af38eb527085bb37f92 /mingling_core/src/comp.rs | |
| parent | 92cccd9517e764508dfa0342ae2ea254661d0a8f (diff) | |
Add unit and integration tests for mingling_core
Diffstat (limited to 'mingling_core/src/comp.rs')
| -rw-r--r-- | mingling_core/src/comp.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mingling_core/src/comp.rs b/mingling_core/src/comp.rs index bf7ab13..f6fecd1 100644 --- a/mingling_core/src/comp.rs +++ b/mingling_core/src/comp.rs @@ -371,3 +371,13 @@ fn trace_ctx(ctx: &ShellContext) { trace!("shell_flag={:?}", ctx.shell_flag); trace!("=== SHELL CTX END ==="); } + +#[cfg(test)] +mod tests { + use super::COMPLETION_SUBCOMMAND; + + #[test] + fn completion_subcommand_constant() { + assert_eq!(COMPLETION_SUBCOMMAND, "__comp"); + } +} |
