Skip to content

Commit

Permalink
Move libXtest into libX/tests
Browse files Browse the repository at this point in the history
This change moves:

1. `libcoretest` into `libcore/tests`
2. `libcollectionstest` into `libcollections/tests`

This is a follow-up to rust-lang#39561.
  • Loading branch information
Stjepan Glavina committed Apr 3, 2017
1 parent 5309a3e commit 13c744f
Show file tree
Hide file tree
Showing 64 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ core = { path = "../libcore" }
std_unicode = { path = "../libstd_unicode" }

[[test]]
name = "collectionstest"
path = "../libcollectionstest/lib.rs"
name = "collectionstests"
path = "../libcollections/tests/lib.rs"

[[bench]]
name = "collectionsbenches"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/libcore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ test = false
bench = false

[[test]]
name = "coretest"
path = "../libcoretest/lib.rs"
name = "coretests"
path = "../libcore/tests/lib.rs"

[[bench]]
name = "corebenches"
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/bignum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! inputs, but we don't do so to avoid the code bloat. Each bignum is still
//! tracked for the actual usages, so it normally doesn't matter.
// This module is only for dec2flt and flt2dec, and only public because of libcoretest.
// This module is only for dec2flt and flt2dec, and only public because of coretests.
// It is not intended to ever be stabilized.
#![doc(hidden)]
#![unstable(feature = "core_private_bignum",
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/diy_float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

//! Extended precision "soft float", for internal use only.
// This module is only for dec2flt and flt2dec, and only public because of libcoretest.
// This module is only for dec2flt and flt2dec, and only public because of coretests.
// It is not intended to ever be stabilized.
#![doc(hidden)]
#![unstable(feature = "core_private_diy_float",
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/flt2dec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ provide a large enough buffer and `Part` array, and to assemble the final
string from resulting `Part`s itself.
All algorithms and formatting functions are accompanied by extensive tests
in `coretest::num::flt2dec` module. It also shows how to use individual
in `coretests::num::flt2dec` module. It also shows how to use individual
functions.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<T: fmt::UpperHex> fmt::UpperHex for Wrapping<T> {

mod wrapping;

// All these modules are technically private and only exposed for libcoretest:
// All these modules are technically private and only exposed for coretests:
pub mod flt2dec;
pub mod dec2flt;
pub mod bignum;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/libcoretest/str.rs → src/libcore/tests/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// All `str` tests live in libcollectiontest::str
// All `str` tests live in collectionstests::str
File renamed without changes.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/pal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[
"src/libtest", // Probably should defer to unstable std::sys APIs

// std testing crates, ok for now at least
"src/libcoretest",
"src/libcore/tests",

// non-std crates
"src/test",
Expand Down

0 comments on commit 13c744f

Please sign in to comment.