unittest/validate_indic_test.cc
TEST(ValidateIndicTest, SubGraphemes) {
  std::string str = "\u0d3e"; // AA
  std::string dest;
  EXPECT_FALSE(NormalizeUTF8String(UnicodeNormMode::kNFC, OCRNorm::kNone, GraphemeNorm::kNormalize,
                                   str.c_str(), &dest))
      << PrintString32WithUnicodes(str);
  EXPECT_TRUE(NormalizeUTF8String(UnicodeNormMode::kNFC, OCRNorm::kNone, GraphemeNorm::kNone,
                                  str.c_str(), &dest))
      << PrintString32WithUnicodes(str);
  EXPECT_EQ(dest, str);
}
// Sub-graphemes are allowed if GraphemeNorm is turned off.
Sub-graphemes are allowed if GraphemeNorm is turned off.
Sub - graphemes are allowed if GraphemeNorm is turned off .
TEST(ValidateIndicTest, SubGraphemes) {
  std::string str = "\u0d3e"; 
  std::string dest;
  EXPECT_FALSE(NormalizeUTF8String(UnicodeNormMode::kNFC, OCRNorm::kNone, GraphemeNorm::kNormalize,
                                   str.c_str(), &dest))
      << PrintString32WithUnicodes(str);
  EXPECT_TRUE(NormalizeUTF8String(UnicodeNormMode::kNFC, OCRNorm::kNone, GraphemeNorm::kNone,
                                  str.c_str(), &dest))
      << PrintString32WithUnicodes(str);
  EXPECT_EQ(dest, str);
}
TEST ( ValidateIndicTest , SubGraphemes ) { std :: string str = " \u0d3e " ; std :: string dest ; EXPECT_FALSE ( NormalizeUTF8String ( UnicodeNormMode :: kNFC , OCRNorm :: kNone , GraphemeNorm :: kNormalize , str . c_str ( ) , & dest ) ) << PrintString32WithUnicodes ( str ) ; EXPECT_TRUE ( NormalizeUTF8String ( UnicodeNormMode :: kNFC , OCRNorm :: kNone , GraphemeNorm :: kNone , str . c_str ( ) , & dest ) ) << PrintString32WithUnicodes ( str ) ; EXPECT_EQ ( dest , str ) ; }
Sub-graphemes are allowed if GraphemeNorm is turned off.
Sub - graphemes are allowed if GraphemeNorm is turned off .
// AA