@@ -66,15 +66,15 @@ fn last_child() {
6666#[ test]
6767fn has_siblings ( ) {
6868 let mut tree = tree ! ( 'a' => { 'b' , 'c' } ) ;
69- assert_eq ! ( true , tree. root_mut( ) . first_child( ) . unwrap( ) . has_siblings( ) ) ;
70- assert_eq ! ( false , tree. root_mut( ) . has_siblings( ) ) ;
69+ assert ! ( tree. root_mut( ) . first_child( ) . unwrap( ) . has_siblings( ) ) ;
70+ assert ! ( ! tree. root_mut( ) . has_siblings( ) ) ;
7171}
7272
7373#[ test]
7474fn has_children ( ) {
7575 let mut tree = tree ! ( 'a' => { 'b' , 'c' } ) ;
76- assert_eq ! ( true , tree. root_mut( ) . has_children( ) ) ;
77- assert_eq ! ( false , tree. root_mut( ) . first_child( ) . unwrap( ) . has_children( ) ) ;
76+ assert ! ( tree. root_mut( ) . has_children( ) ) ;
77+ assert ! ( ! tree. root_mut( ) . first_child( ) . unwrap( ) . has_children( ) ) ;
7878}
7979
8080#[ test]
@@ -310,7 +310,7 @@ fn reparent_from_id_append() {
310310 let g = b. last_child ( ) . unwrap ( ) ;
311311 let f = g. prev_sibling ( ) . unwrap ( ) ;
312312
313- assert_eq ! ( false , e. has_children( ) ) ;
313+ assert ! ( ! e. has_children( ) ) ;
314314 assert_eq ! ( & 'f' , f. value( ) ) ;
315315 assert_eq ! ( & 'g' , g. value( ) ) ;
316316 assert_eq ! ( Some ( f) , d. next_sibling( ) ) ;
@@ -337,7 +337,7 @@ fn reparent_from_id_prepend() {
337337 let d = c. next_sibling ( ) . unwrap ( ) ;
338338 let f = b. last_child ( ) . unwrap ( ) . prev_sibling ( ) . unwrap ( ) ;
339339
340- assert_eq ! ( false , e. has_children( ) ) ;
340+ assert ! ( ! e. has_children( ) ) ;
341341 assert_eq ! ( & 'c' , c. value( ) ) ;
342342 assert_eq ! ( & 'd' , d. value( ) ) ;
343343 assert_eq ! ( Some ( f) , d. next_sibling( ) ) ;
0 commit comments