| 8 | using namespace DB; |
| 9 | |
| 10 | static void check(const std::string & type_name) |
| 11 | { |
| 12 | auto type = DataTypeFactory::instance().get(type_name); |
| 13 | auto ast = dataTypeToAST(type); |
| 14 | auto new_type = DataTypeFactory::instance().get(ast); |
| 15 | EXPECT_EQ(type->getName(), new_type->getName()); |
| 16 | } |
| 17 | |
| 18 | TEST(DataTypeToAST, SimpleTypes) |
| 19 | { |
no test coverage detected