diff options
Diffstat (limited to 'cras/src/tests/utf8_unittest.cc')
-rw-r--r-- | cras/src/tests/utf8_unittest.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/cras/src/tests/utf8_unittest.cc b/cras/src/tests/utf8_unittest.cc index 4a13fcfa..34360c36 100644 --- a/cras/src/tests/utf8_unittest.cc +++ b/cras/src/tests/utf8_unittest.cc @@ -19,8 +19,7 @@ TEST(UTF8, ValidStress) { EXPECT_EQ(1, valid_utf8_string("The greek word 'kosme': " "\xce\xba\xe1\xbd\xb9\xcf\x83\xce" - "\xbc\xce\xb5", - &pos)); + "\xbc\xce\xb5", &pos)); EXPECT_EQ(35, pos); EXPECT_EQ(1, valid_utf8_string("Playback", &pos)); @@ -116,22 +115,18 @@ TEST(UTF8, InvalidStress) { /* Overlong representations of ASCII characters. */ EXPECT_EQ(0, valid_utf8_string("This represents the / character with too" - "many bytes: \xe0\x80\xaf", - &pos)); + "many bytes: \xe0\x80\xaf", &pos)); EXPECT_EQ(53, pos); EXPECT_EQ(0, valid_utf8_string("This represents the / character with too" - "many bytes: \xf0\x80\x80\xaf", - &pos)); + "many bytes: \xf0\x80\x80\xaf", &pos)); EXPECT_EQ(53, pos); /* Should not be interpreted as the ASCII NUL character. */ EXPECT_EQ(0, valid_utf8_string("This represents the NUL character with too" - "many bytes: \xe0\x80\x80", - &pos)); + "many bytes: \xe0\x80\x80", &pos)); EXPECT_EQ(55, pos); EXPECT_EQ(0, valid_utf8_string("This represents the NUL character with too" - "many bytes: \xf0\x80\x80\x80", - &pos)); + "many bytes: \xf0\x80\x80\x80", &pos)); EXPECT_EQ(55, pos); /* Single UTF-16 surrogates. */ @@ -153,7 +148,7 @@ TEST(UTF8, InvalidStress) { } // namespace -int main(int argc, char** argv) { +int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } |