File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1084,14 +1084,11 @@ mod tests {
10841084 )
10851085 . await
10861086 . expect ( "execute" ) ;
1087- assert ! ( round. stdout. contains( "36 4" ) , "{}" , round. stdout) ;
1088- assert ! ( round. stdout. contains( "beta needle" ) , "{}" , round. stdout) ;
1089- assert ! (
1090- round. stdout. contains( "beta needle\n gamma needle" ) ,
1091- "{}" ,
1092- round. stdout
1093- ) ;
1094- assert ! ( round. stdout. contains( "1 needle 11" ) , "{}" , round. stdout) ;
1087+ let stdout = round. stdout . replace ( "\r \n " , "\n " ) ;
1088+ assert ! ( stdout. contains( "36 4" ) , "{stdout}" ) ;
1089+ assert ! ( stdout. contains( "beta needle" ) , "{stdout}" ) ;
1090+ assert ! ( stdout. contains( "beta needle\n gamma needle" ) , "{stdout}" ) ;
1091+ assert ! ( stdout. contains( "1 needle 11" ) , "{stdout}" ) ;
10951092 rt. shutdown ( ) . await ;
10961093 }
10971094
Original file line number Diff line number Diff line change @@ -533,7 +533,11 @@ mod tests {
533533 . await
534534 . expect ( "eval" ) ;
535535 let eval_json: Value = serde_json:: from_str ( & eval. content ) . expect ( "eval json" ) ;
536- assert_eq ! ( eval_json[ "stdout_preview" ] , "ok\n " ) ;
536+ let stdout_preview = eval_json[ "stdout_preview" ]
537+ . as_str ( )
538+ . expect ( "stdout_preview" )
539+ . replace ( "\r \n " , "\n " ) ;
540+ assert_eq ! ( stdout_preview, "ok\n " ) ;
537541
538542 let close = RlmCloseTool
539543 . execute ( json ! ( { "name" : "sample" } ) , & ctx)
You can’t perform that action at this time.
0 commit comments