1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use 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
);
}