mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-12 12:05:20 +08:00
17 lines
296 B
C++
17 lines
296 B
C++
#include "base/color.h"
|
|
#include "base/color_parser.h"
|
|
#include "gtest/gtest.h"
|
|
#include <string>
|
|
|
|
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));
|
|
}
|