@@ -479,12 +479,12 @@ fn make_contiguous_big_head() {
479479
480480    // 012......9876543 
481481    assert_eq ! ( tester. capacity( ) ,  15 ) ; 
482-     assert_eq ! ( ( & [ 9 ,  8 ,  7 ,  6 ,  5 ,  4 ,  3 ]   as   & [ _ ] ,   & [ 0 ,  1 ,  2 ]   as   & [ _ ] ) ,  tester . as_slices ( ) ) ; 
482+     assert_eq ! ( tester . as_slices ( ) ,   ( [ 9 ,  8 ,  7 ,  6 ,  5 ,  4 ,  3 ] ,   [ 0 ,  1 ,  2 ] ) ) ; 
483483
484484    let  expected_start = tester. as_slices ( ) . 1 . len ( ) ; 
485485    tester. make_contiguous ( ) ; 
486486    assert_eq ! ( tester. head,  expected_start) ; 
487-     assert_eq ! ( ( & [ 9 ,  8 ,  7 ,  6 ,  5 ,  4 ,  3 ,  0 ,  1 ,  2 ]   as   & [ _ ] ,   & [ ]   as   & [ _ ] ) ,  tester . as_slices ( ) ) ; 
487+     assert_eq ! ( tester . as_slices ( ) ,   ( [ 9 ,  8 ,  7 ,  6 ,  5 ,  4 ,  3 ,  0 ,  1 ,  2 ] ,   [ ] ) ) ; 
488488} 
489489
490490#[ test]  
@@ -503,7 +503,7 @@ fn make_contiguous_big_tail() {
503503    let  expected_start = 0 ; 
504504    tester. make_contiguous ( ) ; 
505505    assert_eq ! ( tester. head,  expected_start) ; 
506-     assert_eq ! ( ( & [ 9 ,  8 ,  0 ,  1 ,  2 ,  3 ,  4 ,  5 ,  6 ,  7 ]   as   & [ _ ] ,   & [ ]   as   & [ _ ] ) ,  tester . as_slices ( ) ) ; 
506+     assert_eq ! ( tester . as_slices ( ) ,   ( [ 9 ,  8 ,  0 ,  1 ,  2 ,  3 ,  4 ,  5 ,  6 ,  7 ] ,   [ ] ) ) ; 
507507} 
508508
509509#[ test]  
@@ -525,8 +525,8 @@ fn make_contiguous_small_free() {
525525    tester. make_contiguous ( ) ; 
526526    assert_eq ! ( tester. head,  expected_start) ; 
527527    assert_eq ! ( 
528-         ( & [ 'M' ,   'L' ,   'K' ,   'J' ,   'I' ,   'A' ,   'B' ,   'C' ,   'D' ,   'E' ,   'F' ,   'G' ,   'H' ]   as   & [ _ ] ,   & [ ]   as   & [ _ ] ) , 
529-         tester . as_slices ( ) 
528+         tester . as_slices ( ) , 
529+         ( [ 'M' ,   'L' ,   'K' ,   'J' ,   'I' ,   'A' ,   'B' ,   'C' ,   'D' ,   'E' ,   'F' ,   'G' ,   'H' ] ,   [ ] ) 
530530    ) ; 
531531
532532    tester. clear ( ) ; 
@@ -543,8 +543,8 @@ fn make_contiguous_small_free() {
543543    tester. make_contiguous ( ) ; 
544544    assert_eq ! ( tester. head,  expected_start) ; 
545545    assert_eq ! ( 
546-         ( & [ 'H' ,   'G' ,   'F' ,   'E' ,   'D' ,   'C' ,   'B' ,   'A' ,   'I' ,   'J' ,   'K' ,   'L' ,   'M' ]   as   & [ _ ] ,   & [ ]   as   & [ _ ] ) , 
547-         tester . as_slices ( ) 
546+         tester . as_slices ( ) , 
547+         ( [ 'H' ,   'G' ,   'F' ,   'E' ,   'D' ,   'C' ,   'B' ,   'A' ,   'I' ,   'J' ,   'K' ,   'L' ,   'M' ] ,   [ ] ) 
548548    ) ; 
549549} 
550550
@@ -570,12 +570,8 @@ fn make_contiguous_head_to_end() {
570570    tester. make_contiguous ( ) ; 
571571    assert_eq ! ( tester. head,  expected_start) ; 
572572    assert_eq ! ( 
573-         ( 
574-             & [ 'P' ,  'O' ,  'N' ,  'M' ,  'L' ,  'A' ,  'B' ,  'C' ,  'D' ,  'E' ,  'F' ,  'G' ,  'H' ,  'I' ,  'J' ,  'K' ] 
575-                 as  & [ _] , 
576-             & [ ]  as  & [ _] 
577-         ) , 
578-         tester. as_slices( ) 
573+         tester. as_slices( ) , 
574+         ( [ 'P' ,  'O' ,  'N' ,  'M' ,  'L' ,  'A' ,  'B' ,  'C' ,  'D' ,  'E' ,  'F' ,  'G' ,  'H' ,  'I' ,  'J' ,  'K' ] ,  [ ] ) 
579575    ) ; 
580576
581577    tester. clear ( ) ; 
@@ -592,12 +588,8 @@ fn make_contiguous_head_to_end() {
592588    tester. make_contiguous ( ) ; 
593589    assert_eq ! ( tester. head,  expected_start) ; 
594590    assert_eq ! ( 
595-         ( 
596-             & [ 'K' ,  'J' ,  'I' ,  'H' ,  'G' ,  'F' ,  'E' ,  'D' ,  'C' ,  'B' ,  'A' ,  'L' ,  'M' ,  'N' ,  'O' ,  'P' ] 
597-                 as  & [ _] , 
598-             & [ ]  as  & [ _] 
599-         ) , 
600-         tester. as_slices( ) 
591+         tester. as_slices( ) , 
592+         ( [ 'K' ,  'J' ,  'I' ,  'H' ,  'G' ,  'F' ,  'E' ,  'D' ,  'C' ,  'B' ,  'A' ,  'L' ,  'M' ,  'N' ,  'O' ,  'P' ] ,  [ ] ) 
601593    ) ; 
602594} 
603595
0 commit comments