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:959–965  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

957
958 #[test]
959 fn test_truncate_string_unicode() {
960 let result = truncate_string("Hello 世界!", 10);
961 assert_eq!(result, "Hello 世界!");
962
963 let result2 = truncate_string("Hello 世界!", 8);
964 assert!(result2.ends_with("..."));
965 }
966
967 #[test]
968 fn test_json_provenance_surfaces_agent_context_fields() {

Callers

nothing calls this directly

Calls 1

truncate_stringFunction · 0.70

Tested by

no test coverage detected