[FIX] clang-tidy issue

This commit is contained in:
NADAL Jean-Baptiste
2024-02-14 11:42:56 +01:00
parent a9520b89f1
commit d019402756
4 changed files with 28 additions and 3 deletions

View File

@@ -271,6 +271,10 @@ SCENARIO("Adding two tuples without modify a1", "[features/tuples.feature]")
{
REQUIRE((a1 + a2) == Tuple(1, 1, 6, 1));
}
AND_THEN("a3 = a1 + a2")
{
REQUIRE((a1 + a2) == a3);
}
}
}
}
@@ -312,6 +316,10 @@ SCENARIO("Subtracting two points without modify p1", "[features/tuples.feature]"
{
REQUIRE((p1 - p2) == Tuple::Vector(-2, -4, -6));
}
AND_THEN("p3 = p1 - p2")
{
REQUIRE((p1 - p2) == p3);
}
}
}
}
@@ -414,6 +422,10 @@ SCENARIO("Multiplying a tuple by a scalar without modify a", "[features/tuples.f
{
REQUIRE(a * 3.5 == Tuple(3.5, -7, 10.5, -14));
}
AND_THEN("b = a * 3.5")
{
REQUIRE((a * 3.5) == b);
}
}
}
}
@@ -460,6 +472,10 @@ SCENARIO("Dividing a tuple by a scalar without modify a", "[features/tuples.feat
{
REQUIRE(a / 2 == Tuple(0.5, -1, 1.5, -2));
}
AND_THEN("b = a / 2")
{
REQUIRE((a / 2) == b);
}
}
}
}