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

Function test_truncate_string_unicode

atomic-cli/src/commands/change/tests.rs:840–846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

truncate_stringFunction · 0.70

Tested by

no test coverage detected