aboutsummaryrefslogtreecommitdiff
path: root/test/platform/ColorTest.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 10:01:30 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 10:01:30 +0800
commitfaf77949e19dc0d01f75bf8abb783eda70328048 (patch)
tree0448c642573157d79a984ab19b3396210e91acca /test/platform/ColorTest.cpp
parent9e4419826b3e23c63567591701a2834a837da98e (diff)
downloadcru-faf77949e19dc0d01f75bf8abb783eda70328048.tar.gz
cru-faf77949e19dc0d01f75bf8abb783eda70328048.tar.bz2
cru-faf77949e19dc0d01f75bf8abb783eda70328048.zip
Platform base no String.
Diffstat (limited to 'test/platform/ColorTest.cpp')
-rw-r--r--test/platform/ColorTest.cpp12
1 files changed, 6 insertions, 6 deletions
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);
}