#include "base/color.h" #include "base/color_parser.h" #include "gtest/gtest.h" #include using std::string; TEST(Color, basic) { char hex[8]; const char* str = "#AABBCC"; color_t c = color_parse_simple(str); color_hex_str(c, hex); ASSERT_EQ(string(hex), string(str)); }