From bd247fa31579c100275d2f2fa03c1388d22f60dd Mon Sep 17 00:00:00 2001 From: taigi100 Date: Thu, 17 Mar 2022 08:46:10 +0200 Subject: Update color constants to use HEX codes --- tests/core/math/test_color.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/core') diff --git a/tests/core/math/test_color.h b/tests/core/math/test_color.h index e62ce6ec60..702f17a9cf 100644 --- a/tests/core/math/test_color.h +++ b/tests/core/math/test_color.h @@ -146,15 +146,15 @@ TEST_CASE("[Color] Conversion methods") { TEST_CASE("[Color] Named colors") { CHECK_MESSAGE( - Color::named("red").is_equal_approx(Color(1, 0, 0)), + Color::named("red").is_equal_approx(Color::hex(0xFF0000FF)), "The named color \"red\" should match the expected value."); // Named colors have their names automatically normalized. CHECK_MESSAGE( - Color::named("white_smoke").is_equal_approx(Color(0.96, 0.96, 0.96)), + Color::named("white_smoke").is_equal_approx(Color::hex(0xF5F5F5FF)), "The named color \"white_smoke\" should match the expected value."); CHECK_MESSAGE( - Color::named("Slate Blue").is_equal_approx(Color(0.42, 0.35, 0.80)), + Color::named("Slate Blue").is_equal_approx(Color::hex(0x6A5ACDFF)), "The named color \"Slate Blue\" should match the expected value."); ERR_PRINT_OFF; -- cgit v1.2.3