()
| 68 | |
| 69 | #[test] |
| 70 | fn 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 |
nothing calls this directly
no test coverage detected