mirror of https://github.com/odrling/Aegisub
Fix crash when iconv Roundtrip test fails
Originally committed to SVN as r4778.
This commit is contained in:
parent
98305250df
commit
c33c5f647d
|
@ -141,8 +141,8 @@ TEST(lagi_iconv, wchar_tSupport) {
|
|||
TEST(lagi_iconv, Roundtrip) {
|
||||
std::vector<std::string> names = GetEncodingsList<std::vector<std::string> >();
|
||||
for (std::vector<std::string>::iterator cur = names.begin(); cur != names.end(); ++cur) {
|
||||
EXPECT_NO_THROW(IconvWrapper("utf-8", cur->c_str()));
|
||||
EXPECT_NO_THROW(IconvWrapper(cur->c_str(), "utf-8"));
|
||||
ASSERT_NO_THROW(IconvWrapper("utf-8", cur->c_str()));
|
||||
ASSERT_NO_THROW(IconvWrapper(cur->c_str(), "utf-8"));
|
||||
EXPECT_EQ(
|
||||
"Jackdaws love my big sphinx of quartz",
|
||||
IconvWrapper(cur->c_str(), "utf-8").Convert(
|
||||
|
|
Loading…
Reference in New Issue