From 514929c3b8ee0d4f540be5eb4bc8c1a10e62095d Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Tue, 9 Jun 2026 21:08:20 +0800 Subject: Add unit and integration tests for mingling_core --- mingling_core/src/comp.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mingling_core/src/comp.rs') 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"); + } +} -- cgit