diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-15 20:30:48 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-15 20:30:48 +0800 |
| commit | 2c66376a50d767e6e2e0bc5233707a39f124607b (patch) | |
| tree | d0fb270a36cf3498771b0721acb3ae356b71d2da /mingling_picker/test/src/test.rs | |
| parent | 75f420f8d50910888822c412724ff80fbce32ac5 (diff) | |
test: add integration test crate for mingling_picker
Diffstat (limited to 'mingling_picker/test/src/test.rs')
| -rw-r--r-- | mingling_picker/test/src/test.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mingling_picker/test/src/test.rs b/mingling_picker/test/src/test.rs new file mode 100644 index 0000000..20b07ab --- /dev/null +++ b/mingling_picker/test/src/test.rs @@ -0,0 +1,11 @@ +use mingling_picker::{IntoPicker, macros::flag}; + +#[test] +fn test_picker_pipeline() { + let args = vec!["--flag"]; + let parsed = args + .with_route::<String>() + .pick(&flag![flag: bool]) + .unwrap(); + assert_eq!(parsed, true); +} |
