Skip to content

Commit

Permalink
Make code compatible with C++20 (google#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 13, 2022
1 parent e4fce14 commit 7a213d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clients/cpp/zawgyi_detector_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ class ZawgyiDetectorTest : public testing::Test {
};

TEST_F (ZawgyiDetectorTest, strongTest) {
const char* strong_unicode = u8"အပြည်ပြည်ဆိုင်ရာ လူ့အခွင့်အရေး ကြေညာစာတမ်း";
const char* strong_zawgyi = u8"အျပည္ျပည္ဆိုင္ရာ လူ႔အခြင့္အေရး ေၾကညာစာတမ္း";
const char* strong_unicode =
reinterpret_cast<const char*>(u8"အပြည်ပြည်ဆိုင်ရာ လူ့အခွင့်အရေး ကြေညာစာတမ်း");
const char* strong_zawgyi =
reinterpret_cast<const char*>(u8"အျပည္ျပည္ဆိုင္ရာ လူ႔အခြင့္အေရး ေၾကညာစာတမ္း");
EXPECT_LT(
detector_.GetZawgyiProbability(strong_unicode),
0.001);
Expand Down

0 comments on commit 7a213d1

Please sign in to comment.