[FEAT] Color Finish all tests
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user