[FEAT] Color Finish all tests

This commit is contained in:
NADAL Jean-Baptiste
2024-01-31 11:38:36 +01:00
parent b44f8ee144
commit 033ec18577
4 changed files with 26 additions and 2 deletions

View File

@@ -119,3 +119,14 @@ TEST_CASE("Multiplying a color by a scalar without modify c", "[Colors]")
REQUIRE(c * 2 == Color(0.4, 0.6, 0.8));
}
/* ------------------------------------------------------------------------- */
TEST_CASE("Multiplying a colors", "[Colors]")
{
Color c1(1, 0.2, 0.4);
Color c2(0.9, 1, 0.1);
REQUIRE((c1 * c2) == Color(0.9, 0.2, 0.04));
}