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

Function test_truncate_prompt_unicode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

truncate_promptFunction · 0.70

Tested by

no test coverage detected