shapes: lint
This commit is contained in:
parent
135a519526
commit
f476822bcd
@ -427,7 +427,7 @@ mod tests {
|
||||
let r = Ray::new(Tuple::point(0., 0., -5.), Tuple::vector(0., 0., 1.));
|
||||
let mut s = Shape::test_shape();
|
||||
s.set_transform(Matrix4x4::scaling(2., 2., 2.));
|
||||
let xs = intersect(&s, &r);
|
||||
let _xs = intersect(&s, &r);
|
||||
if let Geometry::TestShape(data) = s.geometry() {
|
||||
if let Some(ray) = &data.lock().unwrap().saved_ray {
|
||||
assert_eq!(ray.origin, Tuple::point(0., 0., -2.5));
|
||||
@ -445,7 +445,7 @@ mod tests {
|
||||
let r = Ray::new(Tuple::point(0., 0., -5.), Tuple::vector(0., 0., 1.));
|
||||
let mut s = Shape::test_shape();
|
||||
s.set_transform(Matrix4x4::translation(5., 0., 0.));
|
||||
let xs = intersect(&s, &r);
|
||||
let _xs = intersect(&s, &r);
|
||||
if let Geometry::TestShape(data) = s.geometry() {
|
||||
if let Some(ray) = &data.lock().unwrap().saved_ray {
|
||||
assert_eq!(ray.origin, Tuple::point(-5., 0., -5.));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user