diff --git a/.travis.yml b/.travis.yml index a9896da..3475db4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ branches: # the main build script: - | + cargo build -v --no-default-features && + cargo test -v --no-default-features && cargo build -v --features=$FEATURES && cargo test -v --features=$FEATURES && if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then diff --git a/src/algorithms.rs b/src/algorithms.rs index c0ecb10..5d65486 100644 --- a/src/algorithms.rs +++ b/src/algorithms.rs @@ -468,6 +468,7 @@ pub fn merge_internal_ranges(data: &mut [T], left_end: usize, buffer: &m Ok(()) } +#[cfg(feature="use_std")] #[test] fn test_merge_internal() { let mut buffer = [0; 128]; diff --git a/src/container.rs b/src/container.rs index 3fcdbcf..7d36aac 100644 --- a/src/container.rs +++ b/src/container.rs @@ -660,7 +660,7 @@ fn intervals() { for elt in &mut arr[r] { *elt += 1; } - println!("{:?}", &mut arr[r]); + // println!("{:?}", &mut arr[r]); }); } diff --git a/tests/vec.rs b/tests/vec.rs index 64b7ee4..4277245 100644 --- a/tests/vec.rs +++ b/tests/vec.rs @@ -1,3 +1,4 @@ +#![cfg(feature="use_std")] extern crate indexing;