aboutsummaryrefslogtreecommitdiff
path: root/examples/example-unit-test/src/main.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-02 14:02:06 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-02 14:02:06 +0800
commitf34033cc90b3b9ec1cf549419b1f2d3fc6318a58 (patch)
tree1742022781ee50f4360332856f5f8080420cedac /examples/example-unit-test/src/main.rs
parenta84bc4381574e1c54eedf0f1fd55c3643d91b3b1 (diff)
Add `unpack_chain_process` to example unit test and docsHEADmain
Diffstat (limited to 'examples/example-unit-test/src/main.rs')
-rw-r--r--examples/example-unit-test/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/example-unit-test/src/main.rs b/examples/example-unit-test/src/main.rs
index 7808d0d..b89c629 100644
--- a/examples/example-unit-test/src/main.rs
+++ b/examples/example-unit-test/src/main.rs
@@ -12,7 +12,7 @@ use mingling::prelude::*;
mod tests {
use super::*;
use mingling::macros::entry;
- use mingling::{assert_member_id, assert_render_result};
+ use mingling::{assert_member_id, assert_render_result, unpack_chain_process};
// --------- IMPORTANT ---------
#[test]
@@ -34,6 +34,8 @@ mod tests {
let hello_with_valid_name = handle_hello(entry!("Peter")).into();
assert_render_result!(hello_with_valid_name);
+ let result_name = unpack_chain_process!(hello_with_valid_name, ResultName);
+ assert_eq!(result_name.inner, "Peter");
}
#[test]