fix tests without f16

This commit is contained in:
Trevor Spiteri 2019-08-06 20:52:24 +02:00
parent a7ffa79849
commit beecc9d934
1 changed files with 1 additions and 1 deletions

View File

@ -228,11 +228,11 @@ pub const LN_10: FixedU128<U126> = FixedU128 {
mod tests {
use crate::{consts::*, traits::FromFixed};
use core::{f32, f64};
use half::{self, f16};
#[cfg(feature = "f16")]
#[test]
fn cmp_f16() {
use half::{self, f16};
assert_eq!(f16::from_fixed(TAU), f16::from_f32(f32::consts::PI * 2.0));
assert_eq!(f16::from_fixed(FRAC_TAU_2), half::consts::PI);
assert_eq!(