unittest/validate_khmer_test.cc
TEST(ValidateKhmerTest, GoodKhmerWords) {
  std::string str = "ព័ត៏មានប្លែកៗ";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 13, 12, 7, str);
  str = "ទំនុកច្រៀង";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 10, 9, 5, str);
  str = "កាលីហ្វូញ៉ា";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 11, 10, 4, str);
  str = "ចាប់ពីផ្លូវ";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 11, 10, 5, str);
}
// Test some random Khmer words.
Test some random Khmer words.
Test some random Khmer words .
TEST(ValidateKhmerTest, GoodKhmerWords) {
  std::string str = "ព័ត៏មានប្លែកៗ";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 13, 12, 7, str);
  str = "ទំនុកច្រៀង";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 10, 9, 5, str);
  str = "កាលីហ្វូញ៉ា";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 11, 10, 4, str);
  str = "ចាប់ពីផ្លូវ";
  ExpectGraphemeModeResults(str, UnicodeNormMode::kNFC, 11, 10, 5, str);
}
TEST ( ValidateKhmerTest , GoodKhmerWords ) { std :: string str = " ExpectGraphemeModeResults ( str , UnicodeNormMode :: kNFC , 13 , 12 , 7 , str ) ; str = " ExpectGraphemeModeResults ( str , UnicodeNormMode :: kNFC , 10 , 9 , 5 , str ) ; str = " ExpectGraphemeModeResults ( str , UnicodeNormMode :: kNFC , 11 , 10 , 4 , str ) ; str = " ExpectGraphemeModeResults ( str , UnicodeNormMode :: kNFC , 11 , 10 , 5 , str ) ; }
Test some random Khmer words.
Test some random Khmer words .