#[test]
+#[ignore]
fn test_range_size_hint() {
- use core::usize::MAX as UMAX;
assert_eq!((0..0usize).size_hint(), (0, Some(0)));
+ assert_eq!((0..100usize).size_hint(), (100, Some(100)));
@@ -2210,6 +2212,7 @@ fn test_range_size_hint() {
}
#[test]
+#[ignore]
fn test_range_inclusive_size_hint() {
- use core::usize::MAX as UMAX;
assert_eq!((1..=0usize).size_hint(), (0, Some(0)));
+ assert_eq!((0..=0usize).size_hint(), (1, Some(1)));
@@ -2305,6 +2308,7 @@ fn test_repeat_with_take_collect() {
}
#[test]
+#[ignore]
fn from_str_issue7588() {
- let u : Option<u8> = u8::from_str_radix("1000", 10).ok();
+ let u: Option<u8> = u8::from_str_radix("1000", 10).ok();
assert_eq!(u, None);
@@ -613,11 +614,9 @@ test_impl_try_from_signed_to_unsigned_err! { test_try_i64u32, i64, u32 }
test_impl_try_from_signed_to_unsigned_err! { test_try_i128u8, i128, u8 }
cfg_block! {
#[cfg(target_pointer_width = "16")] {
@@ -640,6 +639,7 @@ macro_rules! test_float {
- ($modname: ident, $fty: ty, $inf: expr, $neginf: expr, $nan: expr) => { mod $modname {
- // FIXME(nagisa): these tests should test for sign of -0.0
- #[test]
-+ #[ignore]
- fn min() {
- assert_eq!((0.0 as $fty).min(0.0), 0.0);
- assert_eq!((-0.0 as $fty).min(-0.0), -0.0);
+ mod $modname {
+ // FIXME(nagisa): these tests should test for sign of -0.0
+ #[test]
++ #[ignore]
+ fn min() {
+ assert_eq!((0.0 as $fty).min(0.0), 0.0);
+ assert_eq!((-0.0 as $fty).min(-0.0), -0.0);
@@ -662,6 +662,7 @@ macro_rules! test_float {
- assert!(($nan as $fty).min($nan).is_nan());
- }
- #[test]
-+ #[ignore]
- fn max() {
- assert_eq!((0.0 as $fty).max(0.0), 0.0);
- assert_eq!((-0.0 as $fty).max(-0.0), -0.0);
+ assert!(($nan as $fty).min($nan).is_nan());
+ }
+ #[test]
++ #[ignore]
+ fn max() {
+ assert_eq!((0.0 as $fty).max(0.0), 0.0);
+ assert_eq!((-0.0 as $fty).max(-0.0), -0.0);
diff --git a/src/libcore/tests/time.rs b/src/libcore/tests/time.rs
index fac70c4..9107a02 100644
--- a/src/libcore/tests/time.rs