@@ -639,6 +639,17 @@ fn multiple_names() {
639639 eprintln ! ( "EXPECTED:\n {expected}\n " ) ;
640640
641641 assert_eq ! ( actual, expected) ;
642+
643+ let mut lines = actual. lines ( ) ;
644+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌──1" ) ) ;
645+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌─┴0" ) ) ;
646+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌─┴nested" ) ) ;
647+ assert ! ( lines. next( ) . unwrap( ) . contains( "│ ┌──1" ) ) ;
648+ assert ! ( lines. next( ) . unwrap( ) . contains( "│ ├──2" ) ) ;
649+ assert ! ( lines. next( ) . unwrap( ) . contains( "│ ├──3" ) ) ;
650+ assert ! ( lines. next( ) . unwrap( ) . contains( "├─┴flat" ) ) ;
651+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌─┴(total)" ) ) ;
652+ assert_eq ! ( lines. next( ) , None ) ;
642653}
643654
644655#[ test]
@@ -692,6 +703,12 @@ fn multiple_names_max_depth_2() {
692703 eprintln ! ( "EXPECTED:\n {expected}\n " ) ;
693704
694705 assert_eq ! ( actual, expected) ;
706+
707+ let mut lines = actual. lines ( ) ;
708+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌──nested" ) ) ;
709+ assert ! ( lines. next( ) . unwrap( ) . contains( "├──flat" ) ) ;
710+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌─┴(total)" ) ) ;
711+ assert_eq ! ( lines. next( ) , None ) ;
695712}
696713
697714#[ test]
@@ -746,4 +763,8 @@ fn multiple_names_max_depth_1() {
746763 eprintln ! ( "EXPECTED:\n {expected}\n " ) ;
747764
748765 assert_eq ! ( actual, expected) ;
766+
767+ let mut lines = actual. lines ( ) ;
768+ assert ! ( lines. next( ) . unwrap( ) . contains( "┌──(total)" ) ) ;
769+ assert_eq ! ( lines. next( ) , None ) ;
749770}
0 commit comments