Skip to content

Commit

Permalink
Correctly mark some tests as dependent on "std"
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Apr 30, 2021
1 parent 198686f commit 264ab4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ mod max;
mod mean;
mod min;
mod moments;
#[cfg(feature = "std")]
mod proptest;
#[cfg(any(feature = "std", feature = "libm"))]
mod quantile;
#[cfg(any(feature = "std", feature = "libm"))]
mod random;
#[cfg(any(feature = "std", feature = "libm"))]
mod skewness;
#[cfg(feature = "std")]
mod streaming_stats;
mod weighted_mean;
4 changes: 2 additions & 2 deletions tests/integration/quantile.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]

use average::{Estimate, Quantile};
use quantiles::ckms::CKMS;

#[test]
fn few_observations() {
Expand Down Expand Up @@ -37,6 +36,7 @@ fn few_observations_serde() {
assert_eq!(c.quantile(), 2.5);
}

#[cfg(feature = "std")]
#[test]
fn percentile_99_9() {
let observations = [
Expand Down Expand Up @@ -356,7 +356,7 @@ fn percentile_99_9() {
const TOL: f64 = 0.0001;
const P: f64 = 0.999;
let mut quantile = Quantile::new(P);
let mut ckms = CKMS::new(TOL);
let mut ckms = quantiles::ckms::CKMS::new(TOL);

for &o in observations.iter() {
quantile.add(o);
Expand Down

0 comments on commit 264ab4a

Please sign in to comment.