File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -4000,10 +4000,15 @@ fn sqlp_named_window_references() {
40004000fn sqlp_array_to_string ( ) {
40014001 let wrk = Workdir :: new ( "sqlp_array_to_string" ) ;
40024002
4003- wrk. create ( "data.csv" , vec ! [ svec![ "a" , "b" ] ,
4004- svec![ "first" , "1" ] ,
4005- svec![ "first" , "1" ] ,
4006- svec![ "third" , "42" ] ] ) ;
4003+ wrk. create (
4004+ "data.csv" ,
4005+ vec ! [
4006+ svec![ "a" , "b" ] ,
4007+ svec![ "first" , "1" ] ,
4008+ svec![ "first" , "1" ] ,
4009+ svec![ "third" , "42" ] ,
4010+ ] ,
4011+ ) ;
40074012
40084013 let mut cmd = wrk. command ( "sqlp" ) ;
40094014 cmd. arg ( "data.csv" ) . arg (
@@ -4014,11 +4019,15 @@ fn sqlp_array_to_string() {
40144019 FROM data
40154020 GROUP BY b
40164021 ) tbl
4017- ORDER BY a2s"#
4018- ) ;
4022+ ORDER BY a2s"# ,
4023+ ) ;
40194024
40204025 wrk. assert_success ( & mut cmd) ;
40214026 let got: Vec < Vec < String > > = wrk. read_stdout ( & mut cmd) ;
4022- let expected = vec ! [ svec![ "string" ] , svec![ "a,b,c" ] ] ;
4027+ let expected = vec ! [
4028+ svec![ "b" , "a2s" ] ,
4029+ svec![ "1" , "first, first" ] ,
4030+ svec![ "42" , "third" ] ,
4031+ ] ;
40234032 assert_eq ! ( got, expected) ;
4024- }
4033+ }
You can’t perform that action at this time.
0 commit comments