Skip to content

Commit 3a073e3

Browse files
committed
Tuple test no longer needed. Is already in run-pass tests
1 parent b497f05 commit 3a073e3

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/libcoretest/tuple.rs

-26
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,6 @@ fn test_clone() {
1515
assert_eq!(a, b);
1616
}
1717

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, 4u, 5i8, 6i16, 7i32, 8i64, 9i, 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-
4418
#[test]
4519
fn test_tuple_cmp() {
4620
let (small, big) = ((1u, 2u, 3u), (3u, 2u, 1u));

0 commit comments

Comments
 (0)