Renaming Object to Shape (part 1)

This commit is contained in:
Godzil
2020-02-18 11:40:55 +00:00
parent df4ec9794a
commit 5a4f9f4dc4
12 changed files with 19 additions and 19 deletions

View File

@@ -32,7 +32,7 @@ TEST(IntersectTest, An_intersection_encapsulate_t_and_object)
Intersection i = Intersection(3.5, &s);
ASSERT_EQ(i.t, 3.5);
ASSERT_EQ(i.object, (Object *)&s);
ASSERT_EQ(i.object, (Shape *)&s);
}
TEST(IntersectTest, Aggregating_intersections)
@@ -57,8 +57,8 @@ TEST(IntersectTest, Intersect_sets_the_object_on_the_intersection)
Intersect xs = s.intersect(r);
ASSERT_EQ(xs.count(), 2);
ASSERT_EQ(xs[0].object, (Object *)&s);
ASSERT_EQ(xs[1].object, (Object *)&s);
ASSERT_EQ(xs[0].object, (Shape *)&s);
ASSERT_EQ(xs[1].object, (Shape *)&s);
}
TEST(IntersectTest, The_hit_when_all_intersection_have_positive_t)