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()); }
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()); }