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