@@ -338,17 +338,15 @@ mod tests {
338338 #[ test]
339339 fn test_build_command_args_claude_with_system_prompt ( ) {
340340 let backend = make_backend ( "claude" ) ;
341- let spec =
342- build_command_args ( & backend, "hello" , None , Some ( "You are helpful" ) , true , None ) ;
341+ let spec = build_command_args ( & backend, "hello" , None , Some ( "You are helpful" ) , true , None ) ;
343342 assert ! ( spec. args. contains( & "--append-system-prompt" . to_string( ) ) ) ;
344343 assert ! ( spec. args. contains( & "You are helpful" . to_string( ) ) ) ;
345344 }
346345
347346 #[ test]
348347 fn test_build_command_args_gemini_with_system_prompt ( ) {
349348 let backend = make_backend ( "gemini" ) ;
350- let spec =
351- build_command_args ( & backend, "hello" , None , Some ( "You are helpful" ) , true , None ) ;
349+ let spec = build_command_args ( & backend, "hello" , None , Some ( "You are helpful" ) , true , None ) ;
352350 // System prompt should be prepended to the prompt text
353351 assert ! ( spec
354352 . args
@@ -382,10 +380,13 @@ mod tests {
382380 #[ test]
383381 fn test_build_command_args_codex_with_system_prompt ( ) {
384382 let backend = make_backend ( "codex" ) ;
385- let spec =
386- build_command_args ( & backend, "task" , None , Some ( "You are helpful" ) , true , None ) ;
383+ let spec = build_command_args ( & backend, "task" , None , Some ( "You are helpful" ) , true , None ) ;
387384 assert_eq ! ( spec. args[ 0 ] , "exec" ) ;
388- assert ! ( spec. args. last( ) . unwrap( ) . contains( "SYSTEM: You are helpful" ) ) ;
385+ assert ! ( spec
386+ . args
387+ . last( )
388+ . unwrap( )
389+ . contains( "SYSTEM: You are helpful" ) ) ;
389390 assert ! ( spec. args. last( ) . unwrap( ) . contains( "TASK: task" ) ) ;
390391 }
391392
@@ -424,17 +425,15 @@ mod tests {
424425 #[ test]
425426 fn test_build_command_args_claude_session_resume ( ) {
426427 let backend = make_backend ( "claude" ) ;
427- let spec =
428- build_command_args ( & backend, "hello" , None , None , true , Some ( "session-abc-123" ) ) ;
428+ let spec = build_command_args ( & backend, "hello" , None , None , true , Some ( "session-abc-123" ) ) ;
429429 assert ! ( spec. args. contains( & "-r" . to_string( ) ) ) ;
430430 assert ! ( spec. args. contains( & "session-abc-123" . to_string( ) ) ) ;
431431 }
432432
433433 #[ test]
434434 fn test_build_command_args_codex_session_resume ( ) {
435435 let backend = make_backend ( "codex" ) ;
436- let spec =
437- build_command_args ( & backend, "hello" , None , None , true , Some ( "thread-xyz-789" ) ) ;
436+ let spec = build_command_args ( & backend, "hello" , None , None , true , Some ( "thread-xyz-789" ) ) ;
438437 // codex exec resume <thread_id> ...
439438 assert_eq ! ( spec. args[ 0 ] , "exec" ) ;
440439 assert_eq ! ( spec. args[ 1 ] , "resume" ) ;
0 commit comments