@@ -15,32 +15,6 @@ fn test_clone() {
15
15
assert_eq ! ( a, b) ;
16
16
}
17
17
18
- #[ test]
19
- fn test_getters ( ) {
20
- macro_rules! test_getter(
21
- ( $x: expr, $valN: ident, $refN: ident, $mutN: ident,
22
- $init: expr, $incr: expr, $result: expr) => ( {
23
- assert_eq!( $x. $valN( ) , $init) ;
24
- assert_eq!( * $x. $refN( ) , $init) ;
25
- * $x. $mutN( ) += $incr;
26
- assert_eq!( * $x. $refN( ) , $result) ;
27
- } )
28
- )
29
- let mut x = ( 0u8 , 1u16 , 2u32 , 3u64 , 4 u, 5i8 , 6i16 , 7i32 , 8i64 , 9 i, 10f32 , 11f64 ) ;
30
- test_getter ! ( x, val0, ref0, mut0, 0 , 1 , 1 ) ;
31
- test_getter ! ( x, val1, ref1, mut1, 1 , 1 , 2 ) ;
32
- test_getter ! ( x, val2, ref2, mut2, 2 , 1 , 3 ) ;
33
- test_getter ! ( x, val3, ref3, mut3, 3 , 1 , 4 ) ;
34
- test_getter ! ( x, val4, ref4, mut4, 4 , 1 , 5 ) ;
35
- test_getter ! ( x, val5, ref5, mut5, 5 , 1 , 6 ) ;
36
- test_getter ! ( x, val6, ref6, mut6, 6 , 1 , 7 ) ;
37
- test_getter ! ( x, val7, ref7, mut7, 7 , 1 , 8 ) ;
38
- test_getter ! ( x, val8, ref8, mut8, 8 , 1 , 9 ) ;
39
- test_getter ! ( x, val9, ref9, mut9, 9 , 1 , 10 ) ;
40
- test_getter ! ( x, val10, ref10, mut10, 10.0 , 1.0 , 11.0 ) ;
41
- test_getter ! ( x, val11, ref11, mut11, 11.0 , 1.0 , 12.0 ) ;
42
- }
43
-
44
18
#[ test]
45
19
fn test_tuple_cmp ( ) {
46
20
let ( small, big) = ( ( 1 u, 2 u, 3 u) , ( 3 u, 2 u, 1 u) ) ;
0 commit comments