clang-format

This commit is contained in:
Artem Pavlenko 2024-04-15 14:13:14 +01:00
parent 5ac45af78e
commit 7afaa7e6cc

View file

@ -102,7 +102,7 @@ TEST_CASE("CSS color")
} }
// hsl (fractional percent) // hsl (fractional percent)
{ {
std::string s("hsl(240,50.5%,49.5%)"); //Color(R=62,G=62,B=190,A=255) std::string s("hsl(240,50.5%,49.5%)"); // Color(R=62,G=62,B=190,A=255)
mapnik::color c; mapnik::color c;
CHECK(boost::spirit::x3::phrase_parse(s.cbegin(), s.cend(), color_grammar, space, c)); CHECK(boost::spirit::x3::phrase_parse(s.cbegin(), s.cend(), color_grammar, space, c));
CHECK(c.alpha() == 255); CHECK(c.alpha() == 255);
@ -145,7 +145,7 @@ TEST_CASE("CSS color")
} }
// hsla (fractional percent) // hsla (fractional percent)
{ {
std::string s("hsl(240,50.5%,49.5%,0.5)"); //Color(R=62,G=62,B=190,A=128) std::string s("hsl(240,50.5%,49.5%,0.5)"); // Color(R=62,G=62,B=190,A=128)
mapnik::color c; mapnik::color c;
CHECK(boost::spirit::x3::phrase_parse(s.cbegin(), s.cend(), color_grammar, space, c)); CHECK(boost::spirit::x3::phrase_parse(s.cbegin(), s.cend(), color_grammar, space, c));
CHECK(c.alpha() == 128); CHECK(c.alpha() == 128);