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

Function test_unicode_prompt_summary

atomic-core/src/change/envelope.rs:1072–1080  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

decodeFunction · 0.50
buildMethod · 0.45
prompt_summaryMethod · 0.45
unwrapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected