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

Function test_truncate_prompt_unicode

atomic-agent/src/record/tests.rs:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69#[test]
70fn test_truncate_prompt_unicode() {
71 let s = "修复".repeat(50);
72 let result = truncate_prompt(&s, 20);
73 assert!(result.ends_with("..."));
74 assert!(result.chars().count() <= 20);
75}
76
77// build_turn_message tests
78

Callers

nothing calls this directly

Calls 1

truncate_promptFunction · 0.70

Tested by

no test coverage detected