Exemplo n.º 1
0
TEST_F(TypeParserTests, TestCharUTF32BETypeParsing) {
    this->setInput("Char:utf32be a");

    DataType type = this->typeParser()->parseType();
    ASSERT_EQ(DataType::Character, type.kind());
    ASSERT_EQ(DataType::CharacterEncoding::UTF32BE, type.characterEncoding());
}
Exemplo n.º 2
0
TEST_F(TypeParserTests, TestCharASCIITypeParsing) {
    this->setInput("Char:ascii a");

    DataType type = this->typeParser()->parseType();
    ASSERT_EQ(DataType::Character, type.kind());
    ASSERT_EQ(DataType::CharacterEncoding::ASCII, type.characterEncoding());
}