Always generate Arbitrary instances, not just with cfg(test)

This commit is contained in:
2019-04-03 19:47:07 -07:00
parent 037413ad15
commit cac39b0e50
5 changed files with 0 additions and 5 deletions

View File

@@ -1,4 +1,3 @@
#[cfg(test)]
#[macro_use]
extern crate quickcheck;
extern crate rand;

View File

@@ -93,7 +93,6 @@ macro_rules! signed_impls {
}
}
#[cfg(test)]
impl Arbitrary for $sname {
fn arbitrary<G>(g: &mut G) -> $sname
where G: Gen

View File

@@ -34,7 +34,6 @@ mod shift;
#[macro_use]
mod subtraction;
#[cfg(test)]
use quickcheck::{Arbitrary,Gen};
use std::cmp::{Ord,Ordering,PartialOrd};
use std::fmt;

View File

@@ -64,7 +64,6 @@ macro_rules! generate_base
}
}
#[cfg(test)]
impl Arbitrary for $name {
fn arbitrary<G: Gen>(g: &mut G) -> $name {
let mut res = $name::zero();

View File

@@ -87,7 +87,6 @@ use std::ops::{Rem,RemAssign};
use std::ops::{Shl,ShlAssign,Shr,ShrAssign};
use std::ops::{Sub,SubAssign};
#[cfg(test)]
use quickcheck::{Arbitrary,Gen};
macro_rules! base_impls