File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -680,13 +680,15 @@ mod tests {
680680
681681 fs:: write ( & file, sql) ?;
682682
683- let built = SqlDoc :: from_path ( & file) . flatten_multiline_with ( " • " ) . build ( ) ?;
684-
685- let t = & built. tables ( ) [ 0 ] ;
686-
687- assert_eq ! ( t. doc( ) , Some ( "Table Doc line1 • line2" ) ) ;
688- assert_eq ! ( t. columns( ) [ 0 ] . doc( ) , Some ( "col1 • doc" ) ) ;
689-
683+ let built1 = SqlDoc :: from_path ( & file) . flatten_multiline_with ( " • " ) . build ( ) ?;
684+ let built2 = SqlDoc :: from_path ( & file) . flatten_multiline ( ) . build ( ) ?;
685+ let t1 = & built1. tables ( ) [ 0 ] ;
686+ let t2 = & built2. tables ( ) [ 0 ] ;
687+ assert_eq ! ( t1. doc( ) , Some ( "Table Doc line1 • line2" ) ) ;
688+ assert_eq ! ( t1. columns( ) [ 0 ] . doc( ) , Some ( "col1 • doc" ) ) ;
689+
690+ assert_eq ! ( t2. doc( ) , Some ( "Table Doc line1line2" ) ) ;
691+ assert_eq ! ( t2. columns( ) [ 0 ] . doc( ) , Some ( "col1doc" ) ) ;
690692 let _ = fs:: remove_dir_all ( & base) ;
691693 Ok ( ( ) )
692694 }
You can’t perform that action at this time.
0 commit comments