Fix tests
This commit is contained in:
parent
c0ce271e39
commit
bc89f14250
3 changed files with 3 additions and 5 deletions
|
@ -132,7 +132,7 @@ pub trait Rotation3<S: BaseNum>: Rotation<S, Vector3<S>, Point3<S>>
|
|||
/// angle. We can accomplish this quite easily with a two-dimensional rotation
|
||||
/// matrix:
|
||||
///
|
||||
/// ```rust
|
||||
/// ~~~ignore
|
||||
/// use cgmath::rad;
|
||||
/// use cgmath::Vector2;
|
||||
/// use cgmath::{Matrix, ToMatrix2};
|
||||
|
@ -160,7 +160,7 @@ pub trait Rotation3<S: BaseNum>: Rotation<S, Vector3<S>, Point3<S>>
|
|||
/// let rot_half: Basis2<f64> = Rotation2::from_angle(rad(0.25f64 * f64::consts::PI));
|
||||
/// let unit_y3 = rot_half.concat(&rot_half).rotate_vector(&unit_x);
|
||||
/// assert!(unit_y3.approx_eq(&unit_y2));
|
||||
/// ```
|
||||
/// ~~~
|
||||
#[derive(PartialEq, Copy, Clone, RustcEncodable, RustcDecodable)]
|
||||
pub struct Basis2<S> {
|
||||
mat: Matrix2<S>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
// limitations under the License.
|
||||
|
||||
|
||||
#![feature(phase)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate cgmath;
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ fn to_and_from_quaternion()
|
|||
if !(ax.approx_eq_eps(&bx, &0.001) &&
|
||||
ay.approx_eq_eps(&by, &0.001) &&
|
||||
az.approx_eq_eps(&bz, &0.001)) {
|
||||
panic!("{} != {}", a, b)
|
||||
panic!("{:?} != {:?}", a, b)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue