Merge pull request #1113 from trueb2/user/trueb2/fix-unitcomplex-assertion
Fix UnitComplex cast doctest failure on macOS
This commit is contained in:
commit
d0d88f1e82
|
@ -131,10 +131,11 @@ where
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
|
/// #[macro_use] extern crate approx;
|
||||||
/// # use nalgebra::UnitComplex;
|
/// # use nalgebra::UnitComplex;
|
||||||
/// let c = UnitComplex::new(1.0f64);
|
/// let c = UnitComplex::new(1.0f64);
|
||||||
/// let c2 = c.cast::<f32>();
|
/// let c2 = c.cast::<f32>();
|
||||||
/// assert_eq!(c2, UnitComplex::new(1.0f32));
|
/// assert_relative_eq!(c2, UnitComplex::new(1.0f32));
|
||||||
/// ```
|
/// ```
|
||||||
pub fn cast<To: Scalar>(self) -> UnitComplex<To>
|
pub fn cast<To: Scalar>(self) -> UnitComplex<To>
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in New Issue