about summary refs log tree commit diff
path: root/src/libnum
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-20 01:51:56 -0800
committerbors <bors@rust-lang.org>2014-02-20 01:51:56 -0800
commit25ba057fad54da946bb3d72925c9a93b0abe61ac (patch)
tree141f807a6abb9d11c60a234524d259d943868be0 /src/libnum
parentf76628d3904454241e41acb033f6ececfdd08b4c (diff)
parent53b9d1a3248143aafe421566ba31742579da9722 (diff)
auto merge of #12343 : liigo/rust/move-extra-test-to-libtest, r=alexcrichton
I don't think `extra` is a good/meaningful name for a library. `libextra` should disappear, and we move all of its sub modules out of it. This PR is just one of that steps: move `extra::test` to `libtest`.

I didn't add `libtest` to doc index, because it's an internal library currently.

**Update:**

All comments addressed. All tests passed. Rebased and squashed.

Diffstat (limited to 'src/libnum')
-rw-r--r--src/libnum/bigint.rs5
-rw-r--r--src/libnum/rational.rs3
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libnum/bigint.rs b/src/libnum/bigint.rs
index 8f57f70a56a..21726d28e0c 100644
--- a/src/libnum/bigint.rs
+++ b/src/libnum/bigint.rs
@@ -2546,11 +2546,12 @@ mod bigint_tests {
 
 #[cfg(test)]
 mod bench {
-    use super::{BigInt, BigUint};
+    extern crate test;
+    use self::test::BenchHarness;
+    use super::BigUint;
     use std::iter;
     use std::mem::replace;
     use std::num::{FromPrimitive, Zero, One};
-    use extra::test::BenchHarness;
 
     fn factorial(n: uint) -> BigUint {
         let mut f: BigUint = One::one();
diff --git a/src/libnum/rational.rs b/src/libnum/rational.rs
index a41996d044f..a483946322f 100644
--- a/src/libnum/rational.rs
+++ b/src/libnum/rational.rs
@@ -430,8 +430,7 @@ mod test {
 
     mod arith {
         use super::{_0, _1, _2, _1_2, _3_2, _neg1_2, to_big};
-        use super::super::{Ratio, Rational, BigRational};
-
+        use super::super::{Ratio, Rational};
 
         #[test]
         fn test_add() {