From faf77949e19dc0d01f75bf8abb783eda70328048 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 10:01:30 +0800 Subject: Platform base no String. --- test/platform/ColorTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/platform/ColorTest.cpp') diff --git a/test/platform/ColorTest.cpp b/test/platform/ColorTest.cpp index 0c7c18ba..128c873a 100644 --- a/test/platform/ColorTest.cpp +++ b/test/platform/ColorTest.cpp @@ -5,10 +5,10 @@ using cru::platform::Color; TEST_CASE("Color Parse", "[color]") { - REQUIRE(Color::Parse(u"blue") == Color::Parse(u"#0000ff")); - REQUIRE(Color::Parse(u"#12abAB") == Color::FromHex(0x12abAB)); - REQUIRE(Color::Parse(u"#8812abAB") == Color::FromHexAlpha(0x8812abAB)); - REQUIRE(Color::Parse(u"averystrangestring") == std::nullopt); - REQUIRE(Color::Parse(u"112233") == std::nullopt); - REQUIRE(Color::Parse(u"#7777777") == std::nullopt); + REQUIRE(Color::Parse("blue") == Color::Parse("#0000ff")); + REQUIRE(Color::Parse("#12abAB") == Color::FromHex(0x12abAB)); + REQUIRE(Color::Parse("#8812abAB") == Color::FromHexAlpha(0x8812abAB)); + REQUIRE(Color::Parse("averystrangestring") == std::nullopt); + REQUIRE(Color::Parse("112233") == std::nullopt); + REQUIRE(Color::Parse("#7777777") == std::nullopt); } -- cgit v1.2.3