proptest/arbitrary/
primitives.rsuse crate::bool;
use crate::char;
use crate::num::{
f32, f64, i16, i32, i64, i8, isize, u16, u32, u64, u8, usize,
};
#[cfg(not(target_arch = "wasm32"))]
use crate::num::{i128, u128};
arbitrary!(bool, i8, i16, i32, i64, isize, u8, u16, u32, u64, usize);
#[cfg(not(target_arch = "wasm32"))]
arbitrary!(i128, u128);
arbitrary!(f32, f32::Any; {
f32::POSITIVE | f32::NEGATIVE | f32::ZERO | f32::SUBNORMAL | f32::NORMAL
});
arbitrary!(f64, f64::Any; {
f64::POSITIVE | f64::NEGATIVE | f64::ZERO | f64::SUBNORMAL | f64::NORMAL
});
arbitrary!(char, char::CharStrategy<'static>; char::any());
#[cfg(test)]
mod test {
no_panic_test!(
bool => bool,
char => char,
f32 => f32, f64 => f64,
isize => isize, usize => usize,
i8 => i8, i16 => i16, i32 => i32, i64 => i64, i128 => i128,
u8 => u8, u16 => u16, u32 => u32, u64 => u64, u128 => u128
);
}