@@ -450,18 +450,18 @@ mod tests {
450450
451451 #[ test]
452452 fn test_extract_array_content ( ) {
453- let json: Value = serde_json:: from_str (
453+ let json: serde_json :: Value = serde_json:: from_str (
454454 r#"[{"type":"text","text":"hello"},{"type":"text","text":"world"}]"# ,
455455 )
456- . unwrap ( ) ;
457- let content = extract_value_content ( & json) . unwrap ( ) ;
456+ . expect ( "Valid JSON" ) ;
457+ let content = extract_value_content ( & json) . expect ( "Content exists" ) ;
458458 assert_eq ! ( content, "hello\n world" ) ;
459459 }
460460
461461 #[ test]
462462 fn test_normalize_claude ( ) {
463463 let input = r#"{"tool_name":"Bash","tool_input":{"command":"echo hello"},"tool_response":{"stdout":"hello"}}"# ;
464- let norm = normalize ( input) . unwrap ( ) ;
464+ let norm = normalize ( input) . expect ( "Normalized successfully" ) ;
465465 assert_eq ! ( norm. agent_id, "claude_code" ) ;
466466 assert_eq ! ( norm. tool_name, "Bash" ) ;
467467 assert_eq ! ( norm. content, "hello" ) ;
@@ -471,7 +471,7 @@ mod tests {
471471 fn test_normalize_opencode ( ) {
472472 let input =
473473 r#"{"type":"tool_result","tool":"shell","output":"hello","command":"echo hello"}"# ;
474- let norm = normalize ( input) . unwrap ( ) ;
474+ let norm = normalize ( input) . expect ( "Normalized successfully" ) ;
475475 assert_eq ! ( norm. agent_id, "opencode" ) ;
476476 assert_eq ! ( norm. tool_name, "Bash" ) ;
477477 assert_eq ! ( norm. content, "hello" ) ;
0 commit comments