ICU-862 Fixed tests for ibm-1363 for handling subchar1.

X-SVN-Rev: 3945
This commit is contained in:
Ram Viswanadha 2001-03-07 20:59:31 +00:00
parent 0bba4e5872
commit 0e1ce27f8f
2 changed files with 22 additions and 6 deletions

View File

@ -479,15 +479,31 @@ static void TestConvertFallBackWithBufferSizes(int32_t outsize, int32_t insize )
{ 0, 1, 2, 4, 6, 7};
UChar MBCSText1363[] =
{ 0x0005, 0xffe8, 0x0007, 0x2022, 0x005c, 0x00b7, 0x3016, 0x30fb, 0x9a36};
{ 0x0005,
0xffe8,
0x0007,
0x2022,
0x005c,
0x00b7,
0x3016,
0x30fb,
0x9a36};
const uint8_t expectedIBM1363[] =
{ 0x05, 0x05, 0x07, 0x07, 0xa1,0xe0, 0xa1, 0xe0, 0xa1, 0xe0, 0xa1, 0xa4, 0xf5, 0xe2};
{ 0x05,
0x05,
0x07,
0x07,
0x7f,
0x7f,
0xa1, 0xe0,
0xa1, 0xa4,
0xf5, 0xe2};
UChar retrievedMBCSText1363[]=
{ 0x0005, 0x0005, 0x0007, 0x0007, 0x25a1, 0x25a1, 0x25a1, 0x30fb, 0x9a36};
{ 0x0005, 0x0005, 0x0007, 0x0007, 0x001a, 0x001a, 0x25a1, 0x30fb, 0x9a36};
int32_t toIBM1363Offs [] =
{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x04, 0x05, 0x05, 0x06, 0x06, 0x07, 0x07, 0x08, 0x08};
{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x07, 0x07, 0x08, 0x08};
int32_t fromIBM1363offs [] =
{ 0, 1, 2, 3, 4, 6, 8, 10, 12};
{ 0, 1, 2, 3, 4, 5, 6, 8, 10};

View File

@ -1190,7 +1190,7 @@ static void TestAmbiguous()
UChar *asciiResult = 0, *sjisResult = 0;
int32_t asciiLength = 0, sjisLength = 0;
sjis_cnv = ucnv_open("SJIS", &status);
sjis_cnv = ucnv_open("ibm-943", &status);
if (U_FAILURE(status))
{
log_err("Failed to create a SJIS converter\n");