[FEAT] Add Plane Chapter 09 is done
This commit is contained in:
@@ -143,7 +143,7 @@ SCENARIO("Precompute the state of an intersection", "[features/intersections.fea
|
||||
Sphere shape;
|
||||
AND_GIVEN("i <- intersection(4, shape)")
|
||||
{
|
||||
Intersection i(4, shape);
|
||||
Intersection i(4, &shape);
|
||||
WHEN("comps <- prepare_computations(i,r)")
|
||||
{
|
||||
IntersectionData comps = i.prepare_computations(r);
|
||||
@@ -185,7 +185,7 @@ SCENARIO("The hit, when an intersection occurs on the outside", "[features/inter
|
||||
Sphere shape;
|
||||
AND_GIVEN("i <- intersection(4, shape)")
|
||||
{
|
||||
Intersection i(4, shape);
|
||||
Intersection i(4, &shape);
|
||||
WHEN("comps <- prepare_computations(i,r)")
|
||||
{
|
||||
IntersectionData comps = i.prepare_computations(r);
|
||||
@@ -211,7 +211,7 @@ SCENARIO("The hit, when an intersection occurs on the inside", "[features/inters
|
||||
Sphere shape;
|
||||
AND_GIVEN("i <- intersection(1, shape)")
|
||||
{
|
||||
Intersection i(1, shape);
|
||||
Intersection i(1, &shape);
|
||||
WHEN("comps <- prepare_computations(i,r)")
|
||||
{
|
||||
IntersectionData comps = i.prepare_computations(r);
|
||||
@@ -252,7 +252,7 @@ SCENARIO("Shading an intersection", "[features/world.feature]")
|
||||
Shape *shape = w.objects(0);
|
||||
AND_GIVEN("i <- intersection(4, shape)")
|
||||
{
|
||||
Intersection i(4, *shape);
|
||||
Intersection i(4, shape);
|
||||
WHEN("comps <- prepare_computations(i,r)")
|
||||
{
|
||||
IntersectionData comps = i.prepare_computations(r);
|
||||
@@ -289,7 +289,7 @@ SCENARIO("Shading an intersection from the inside", "[features/world.feature]")
|
||||
Shape *shape = w.objects(1);
|
||||
AND_GIVEN("i <- intersection(0.5, shape)")
|
||||
{
|
||||
Intersection i(0.5, *shape);
|
||||
Intersection i(0.5, shape);
|
||||
WHEN("comps <- prepare_computations(i,r)")
|
||||
{
|
||||
IntersectionData comps = i.prepare_computations(r);
|
||||
|
||||
Reference in New Issue
Block a user