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

Function test_intent_entry_unicode

atomic-core/src/change/session.rs:727–743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

725
726 #[test]
727 fn test_intent_entry_unicode() {
728 let entry = IntentEntry {
729 title: "修复认证错误".into(),
730 description: "ログインフローの修正".into(),
731 turn_id: 1,
732 model: "模型-v1".into(),
733 session_id: "세션-αβγ".into(),
734 outcome: "réussite".into(),
735 total_tokens: 999,
736 total_cost_usd: 1.23,
737 };
738
739 let bytes = entry.to_bytes();
740 let recovered = IntentEntry::from_bytes(&bytes).unwrap();
741
742 assert_eq!(entry, recovered);
743 }
744
745 #[test]
746 fn test_invalid_bytes_returns_error() {

Callers

nothing calls this directly

Calls 2

to_bytesMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected