()
| 838 | |
| 839 | #[test] |
| 840 | fn test_truncate_string_unicode() { |
| 841 | let result = truncate_string("Hello 世界!", 10); |
| 842 | assert_eq!(result, "Hello 世界!"); |
| 843 | |
| 844 | let result2 = truncate_string("Hello 世界!", 8); |
| 845 | assert!(result2.ends_with("...")); |
| 846 | } |
| 847 | } |
nothing calls this directly
no test coverage detected