@@ -532,7 +532,6 @@ impl<T: fmt::Show> fmt::Show for RingBuf<T> {
532
532
mod tests {
533
533
use std:: fmt:: Show ;
534
534
use std:: prelude:: * ;
535
- use std:: gc:: { GC , Gc } ;
536
535
use std:: hash;
537
536
use test:: Bencher ;
538
537
use test;
@@ -587,43 +586,6 @@ mod tests {
587
586
assert_eq ! ( * d. get( 3 ) , 4 ) ;
588
587
}
589
588
590
- #[ test]
591
- #[ allow( deprecated) ]
592
- fn test_boxes ( ) {
593
- let a: Gc < int > = box ( GC ) 5 ;
594
- let b: Gc < int > = box ( GC ) 72 ;
595
- let c: Gc < int > = box ( GC ) 64 ;
596
- let d: Gc < int > = box ( GC ) 175 ;
597
-
598
- let mut deq = RingBuf :: new ( ) ;
599
- assert_eq ! ( deq. len( ) , 0 ) ;
600
- deq. push_front ( a) ;
601
- deq. push_front ( b) ;
602
- deq. push ( c) ;
603
- assert_eq ! ( deq. len( ) , 3 ) ;
604
- deq. push ( d) ;
605
- assert_eq ! ( deq. len( ) , 4 ) ;
606
- assert_eq ! ( deq. front( ) , Some ( & b) ) ;
607
- assert_eq ! ( deq. back( ) , Some ( & d) ) ;
608
- assert_eq ! ( deq. pop_front( ) , Some ( b) ) ;
609
- assert_eq ! ( deq. pop( ) , Some ( d) ) ;
610
- assert_eq ! ( deq. pop( ) , Some ( c) ) ;
611
- assert_eq ! ( deq. pop( ) , Some ( a) ) ;
612
- assert_eq ! ( deq. len( ) , 0 ) ;
613
- deq. push ( c) ;
614
- assert_eq ! ( deq. len( ) , 1 ) ;
615
- deq. push_front ( b) ;
616
- assert_eq ! ( deq. len( ) , 2 ) ;
617
- deq. push ( d) ;
618
- assert_eq ! ( deq. len( ) , 3 ) ;
619
- deq. push_front ( a) ;
620
- assert_eq ! ( deq. len( ) , 4 ) ;
621
- assert_eq ! ( * deq. get( 0 ) , a) ;
622
- assert_eq ! ( * deq. get( 1 ) , b) ;
623
- assert_eq ! ( * deq. get( 2 ) , c) ;
624
- assert_eq ! ( * deq. get( 3 ) , d) ;
625
- }
626
-
627
589
#[ cfg( test) ]
628
590
fn test_parameterized < T : Clone + PartialEq + Show > ( a : T , b : T , c : T , d : T ) {
629
591
let mut deq = RingBuf :: new ( ) ;
@@ -755,12 +717,6 @@ mod tests {
755
717
test_parameterized :: < int > ( 5 , 72 , 64 , 175 ) ;
756
718
}
757
719
758
- #[ test]
759
- fn test_param_at_int ( ) {
760
- test_parameterized :: < Gc < int > > ( box ( GC ) 5 , box ( GC ) 72 ,
761
- box ( GC ) 64 , box ( GC ) 175 ) ;
762
- }
763
-
764
720
#[ test]
765
721
fn test_param_taggy ( ) {
766
722
test_parameterized :: < Taggy > ( One ( 1 ) , Two ( 1 , 2 ) , Three ( 1 , 2 , 3 ) , Two ( 17 , 42 ) ) ;
0 commit comments