From 813b11d0e9aa0f4a71de6081310f95a8bccbebf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 7 Feb 2011 11:27:04 +0000 Subject: [PATCH] Reflect the changes of 66b035b10d7d1803692056c8aca11e23095322e3 into the tests i.e. "#98452# When converting from Unicode to ISO-2022-JP, assume the initial state is ASCII and do not write any unnecessary ( B sequences to initially switch to ASCII", so we need to modify the test to take this into account --- sal/qa/rtl/strings/test_oustring_convert.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sal/qa/rtl/strings/test_oustring_convert.cxx b/sal/qa/rtl/strings/test_oustring_convert.cxx index 6c7eb13653f1..802e02116e82 100644 --- a/sal/qa/rtl/strings/test_oustring_convert.cxx +++ b/sal/qa/rtl/strings/test_oustring_convert.cxx @@ -164,14 +164,12 @@ void test::oustring::Convert::convertToString() | RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR, 0, "" }, - // the next also tests that a short source produces a long target: - /* FIXME: fails currently - { { 0xB800 }, - 1, + { { 0x3001, 0xB800 }, + 2, RTL_TEXTENCODING_ISO_2022_JP, OUSTRING_TO_OSTRING_CVTFLAGS, - "\x1B(B?", - "\x1B(B?" }, */ + "\x1b\x24\x42\x21\x22\x1b\x28\x42\x3f", + "\x1b\x24\x42\x21\x22\x1b\x28\x42\x3f" }, { { 0x0041,0x0100,0x0042 }, 3, RTL_TEXTENCODING_ISO_8859_1,