Fix minor formatting issues

These were not caught by the lint script while it was broken.
This commit is contained in:
Léo Lam 2017-06-05 02:29:56 +02:00
parent b4e5dc6c0f
commit d9fd056803
10 changed files with 26 additions and 34 deletions

View file

@ -43,9 +43,10 @@ TEST(StringUtil, StringEndsWith)
TEST(StringUtil, UTF8ToSHIFTJIS)
{
const std::string kirby_unicode = "\xe6\x98\x9f\xe3\x81\xae\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xa3";
const std::string kirby_unicode =
"\xe6\x98\x9f\xe3\x81\xae\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xa3";
const std::string kirby_sjis = "\x90\xaf\x82\xcc\x83\x4a\x81\x5b\x83\x72\x83\x42";
EXPECT_STREQ(SHIFTJISToUTF8(UTF8ToSHIFTJIS(kirby_unicode)).c_str(), kirby_unicode.c_str());
EXPECT_STREQ(UTF8ToSHIFTJIS(kirby_unicode).c_str(), kirby_sjis.c_str());
}