clang-format
This commit is contained in:
parent
5ac45af78e
commit
7afaa7e6cc
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue