Auto merge of #29079 - fhahn:remove-unused-files-libcoretest, r=alexcrichton

While working on #28711 I found out that 

*  src/libcoretest/clone.rs 
* src/libcoretest/fmt/float.rs  
* src/libcoretest/intrinsics.rs 

are not used. I am not sure if removing them is the right way to go. If it makes sense to keep (and fix and enable) them, I would be happy to update the PR.
This commit is contained in:
bors 2015-10-17 03:19:45 +00:00
commit 4ed46e7225
5 changed files with 11 additions and 20 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
@ -11,8 +11,8 @@
#[test]
fn test_borrowed_clone() {
let x = 5;
let y: &int = &x;
let z: &int = (&y).clone();
let y: &i32 = &x;
let z: &i32 = (&y).clone();
assert_eq!(*z, 5);
}
@ -23,17 +23,3 @@ fn test_clone_from() {
b.clone_from(&a);
assert_eq!(*b, 5);
}
#[test]
fn test_extern_fn_clone() {
trait Empty {}
impl Empty for int {}
fn test_fn_a() -> f64 { 1.0 }
fn test_fn_b<T: Empty>(x: T) -> T { x }
fn test_fn_c(_: int, _: f64, _: int, _: int, _: int) {}
let _ = test_fn_a.clone();
let _ = test_fn_b::<int>.clone();
let _ = test_fn_c.clone();
}

View File

@ -13,5 +13,7 @@ fn test_format_float() {
assert!("1" == format!("{:.0}", 1.0f64));
assert!("9" == format!("{:.0}", 9.4f64));
assert!("10" == format!("{:.0}", 9.9f64));
assert!("9.9" == format!("{:.1}", 9.85f64));
assert!("9.8" == format!("{:.1}", 9.849f64));
assert!("9.9" == format!("{:.1}", 9.851f64));
assert!("1" == format!("{:.0}", 0.5f64));
}

View File

@ -8,8 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
mod num;
mod builders;
mod float;
mod num;
#[test]
fn test_format_flags() {

View File

@ -12,7 +12,7 @@ use core::any::TypeId;
#[test]
fn test_typeid_sized_types() {
struct X; struct Y(uint);
struct X; struct Y(u32);
assert_eq!(TypeId::of::<X>(), TypeId::of::<X>());
assert_eq!(TypeId::of::<Y>(), TypeId::of::<Y>());

View File

@ -54,9 +54,11 @@ mod array;
mod atomic;
mod cell;
mod char;
mod clone;
mod cmp;
mod fmt;
mod hash;
mod intrinsics;
mod iter;
mod mem;
mod nonzero;