Add test infrastructure for f16 and f128
Update test traits to support `f16` and `f128`, as applicable. Add the new routines (`fabs` and `copysign` for `f16` and `f128`) to the list of all operations.
This commit is contained in:
@@ -138,8 +138,12 @@ macro_rules! impl_extensive_input {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(f16_enabled)]
|
||||
impl_extensive_input!(f16);
|
||||
impl_extensive_input!(f32);
|
||||
impl_extensive_input!(f64);
|
||||
#[cfg(f128_enabled)]
|
||||
impl_extensive_input!(f128);
|
||||
|
||||
/// Create a test case iterator for extensive inputs.
|
||||
pub fn get_test_cases<Op>(
|
||||
|
||||
@@ -107,8 +107,12 @@ macro_rules! impl_random_input {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(f16_enabled)]
|
||||
impl_random_input!(f16);
|
||||
impl_random_input!(f32);
|
||||
impl_random_input!(f64);
|
||||
#[cfg(f128_enabled)]
|
||||
impl_random_input!(f128);
|
||||
|
||||
/// Create a test case iterator.
|
||||
pub fn get_test_cases<RustArgs: RandomInput>(
|
||||
|
||||
Reference in New Issue
Block a user