[ADD] add a skeleton of the group and refactor some test datas.

This commit is contained in:
NADAL Jean-Baptiste
2024-03-22 11:59:00 +01:00
parent b3490b146e
commit f05603cb29
15 changed files with 403 additions and 131 deletions

View File

@@ -29,23 +29,12 @@
#include "raytracing.h"
#include "common_data.h"
using namespace Raytracer;
/* ------------------------------------------------------------------------- */
class TestPattern : public Pattern
{
public:
TestPattern(void) = default;
const Color pattern_at(const Tuple &a_point) const override
{
return Color(a_point.x(), a_point.y(), a_point.z());
}
};
/* ------------------------------------------------------------------------- */
SCENARIO("Creating a stripe pattern", "[features/patterns.feature]")
{
GIVEN("pattern <- stripe_pattern(white, black)")