MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_unicode_prompt_summary

Function test_unicode_prompt_summary

atomic-agent/src/envelope.rs:1077–1085  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1075
1076 #[test]
1077 fn test_unicode_prompt_summary() {
1078 let prompt = "修复认证模块中的缺陷 🐛";
1079 let e = SessionEnvelope::builder("s", "a")
1080 .prompt_summary(prompt)
1081 .build();
1082 let bytes = e.encode().unwrap();
1083 let decoded = SessionEnvelope::decode(&bytes).unwrap();
1084 assert_eq!(decoded.prompt_summary.as_deref(), Some(prompt));
1085 }
1086
1087 #[test]
1088 fn test_max_turn_number() {

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.80
buildMethod · 0.45
prompt_summaryMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected