diff options
author | taigi100 <taigi100@pm.me> | 2022-03-17 08:46:10 +0200 |
---|---|---|
committer | taigi100 <taigi100@pm.me> | 2022-03-17 11:36:23 +0200 |
commit | bd247fa31579c100275d2f2fa03c1388d22f60dd (patch) | |
tree | ffbfb7164331f94b4277e6ec70fe000999bade8b /tests/core | |
parent | 178961a6dc14155c0e65ec0040a2b2b328550317 (diff) |
Update color constants to use HEX codes
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/math/test_color.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |