Back to index

glibc  2.9
dat_wcscat.c
Go to the documentation of this file.
00001 /*
00002  *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
00003  *
00004  *      FILE: dat_wcscat.c
00005  *
00006  *      WCSCAT:  wchar_t *wcscat (wchar_t *ws1, wchar_t *ws2)
00007  */
00008 
00009 /* NOTE:
00010    Since this is not a locale sensitive function,
00011    it doesn't make sense to test the function on some
00012    locales. Better make different test cases for each locale ...
00013    (Also some wc* functions are not locale sensitive.)
00014 */
00015 
00016 
00017 TST_WCSCAT tst_wcscat_loc [] = {
00018 
00019   {
00020     {Twcscat, TST_LOC_de},
00021     {
00022       /* 1 */
00023       {{{ 0x00C1,0x00C2,0x0000     },
00024        {                    0x00C3,0x00C4,0x0000 }, },
00025        {   0, 0,    0,
00026           { 0x00C1,0x00C2,0x00C3,0x00C4,0x0000 } },
00027       },
00028       /* 2 */
00029       {{{ 0x0001,0x0002,0x0000     },
00030        {                    0x0003,0x0004,0x0000 }, },
00031        {   0, 0,    0,
00032           { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
00033       },
00034       /* 3 */
00035       {{{ 0x0000              },
00036        {                    0x00C3,0x00C4,0x0000 }, },
00037        {   0, 0,    0,
00038           {          0x00C3,0x00C4,0x0000 }      },
00039       },
00040       /* 4 */
00041       {{{ 0x0001,0xFFFF,0x0000     },
00042        {                    0x0080,0x0090,0x0000 }, },
00043        {   0, 0,    0,
00044           { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
00045       },
00046       {.is_last = 1}
00047     }
00048   },
00049   {
00050     {Twcscat, TST_LOC_enUS},
00051     {
00052       /* 1 */
00053       {{{ 0x0041,0x0042,0x0000     },
00054        {               0x0043,0x0044,0x0000 }, },
00055        {   0,   0,   0,
00056           { 0x0041,0x0042,0x0043,0x0044,0x0000 }  },
00057       },
00058       /* 2 */
00059       {{{ 0x0001,0x0002,0x0000     },
00060        {               0x0003,0x0004,0x0000 }, },
00061        {   0,   0,   0,
00062           { 0x0001,0x0002,0x0003,0x0004,0x0000 }  },
00063       },
00064       /* 3 */
00065       {{{ 0x0000                },
00066        {               0x0043,0x0044,0x0000 }, },
00067        {   0,   0,   0,
00068           {            0x0043,0x0044,0x0000 }  },
00069       },
00070       /* 4 */
00071       {{{ 0x0001,0xFFFF,0x0000     },
00072        {               0x0080,0x0090,0x0000 }, },
00073        {   0,   0,   0,
00074           { 0x0001,0xFFFF,0x0080,0x0090,0x0000 }  },
00075       },
00076       {.is_last = 1}
00077     }
00078   },
00079   {
00080     {Twcscat, TST_LOC_eucJP},
00081     {
00082       /* 1 */
00083       {{{ 0x30A2,0x74E0,0x0000     },
00084        {                    0xFF71,0x0041,0x0000 }, },
00085        {   0, 0,    0,
00086           { 0x30A2,0x74E0,0xFF71,0x0041,0x0000 } },
00087       },
00088       /* 2 */
00089       {{{ 0x0001,0x0002,0x0000     },
00090        {                    0x0003,0x0004,0x0000 }, },
00091        {   0, 0,    0,
00092           { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
00093       },
00094       /* 3 */
00095       {{{ 0x30A2,0xFF71,0x0000     },
00096        {                    0x0000             }, },
00097        {   0, 0,    0,
00098           { 0x30A2,0xFF71,0x0000               } },
00099       },
00100       /* 4 */
00101       {{{ 0x0001,0xFFFF,0x0000     },
00102        {                    0x0080,0x0090,0x0000 }, },
00103        {   0, 0,    0,
00104           { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
00105       },
00106       {.is_last = 1}
00107     }
00108   },
00109   {
00110     {Twcscat, TST_LOC_end}
00111   }
00112 };