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

Function test_truncate_prompt_long

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

Source from the content-addressed store, hash-verified

55
56#[test]
57fn test_truncate_prompt_long() {
58 let s = "a".repeat(100);
59 let result = truncate_prompt(&s, 72);
60 assert!(result.len() <= 72);
61 assert!(result.ends_with("..."));
62}
63
64#[test]
65fn test_truncate_prompt_trims_whitespace() {

Callers

nothing calls this directly

Calls 1

truncate_promptFunction · 0.70

Tested by

no test coverage detected