summaryrefslogtreecommitdiff
path: root/sal/qa/rtl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-07 11:27:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-08 10:09:50 +0000
commit813b11d0e9aa0f4a71de6081310f95a8bccbebf9 (patch)
tree3185870f0f8e8bcb86c6fede61bac122c0d1cdde /sal/qa/rtl
parentbb46c0314a42bacba92c30cafd0ddc09b03dce9b (diff)
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 <ESC> ( B sequences to initially switch to ASCII", so we need to modify the test to take this into account
Diffstat (limited to 'sal/qa/rtl')
-rw-r--r--sal/qa/rtl/strings/test_oustring_convert.cxx10
1 files 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,