Fix failing tests

This commit is contained in:
Thomas Goyne 2015-02-14 12:37:34 -08:00
parent 48d4364eb8
commit 3554bdc29a
2 changed files with 5 additions and 5 deletions

View file

@ -63,21 +63,21 @@ TEST(lagi_iconv, Fallbacks) {
IconvWrapper noneneeded("UTF-8", "UTF-16LE", false);
// Shift-JIS does not have a backslash
EXPECT_THROW(nofallback.Convert("\\"), BadOutput);
EXPECT_THROW(nofallback.Convert("\\"), BadInput);
ASSERT_NO_THROW(fallback.Convert("\\"));
EXPECT_EQ("\\", fallback.Convert("\\"));
EXPECT_NO_THROW(noneneeded.Convert("\\"));
// BOM into non-unicode
char bom[] = "\xEF\xBB\xBF";
EXPECT_THROW(nofallback.Convert(bom), BadOutput);
EXPECT_THROW(nofallback.Convert(bom), BadInput);
ASSERT_NO_THROW(fallback.Convert(bom));
EXPECT_EQ("", fallback.Convert(bom));
EXPECT_NO_THROW(noneneeded.Convert(bom));
// A snowman (U+2603)
char snowman[] = "\xE2\x98\x83";
EXPECT_THROW(nofallback.Convert(snowman), BadOutput);
EXPECT_THROW(nofallback.Convert(snowman), BadInput);
EXPECT_NO_THROW(noneneeded.Convert(snowman));
ASSERT_NO_THROW(fallback.Convert(snowman));
EXPECT_EQ("?", fallback.Convert(snowman));
@ -176,5 +176,5 @@ TEST(lagi_iconv, Iso6937) {
// codepoint not in ISO-6937-2
EXPECT_NO_THROW(ret = subst.Convert("\xCB\x97"));
EXPECT_STREQ("?", ret.c_str());
EXPECT_THROW(no_subst.Convert("\xCB\x97"), agi::charset::BadOutput);
EXPECT_THROW(no_subst.Convert("\xCB\x97"), BadInput);
}

2
vendor/wxWidgets vendored

@ -1 +1 @@
Subproject commit be9764dc215fc390cd54ad15f9db6d52733f3823
Subproject commit ce3185d8ceccee90173b1ec8805d4bf7e042362e