1 /* 2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY 3 * 4 * FILE: dat_wcscat.c 5 * 6 * WCSCAT: wchar_t *wcscat (wchar_t *ws1, wchar_t *ws2) 7 */ 8 9 /* NOTE: 10 Since this is not a locale sensitive function, 11 it doesn't make sense to test the function on some 12 locales. Better make different test cases for each locale ... 13 (Also some wc* functions are not locale sensitive.) 14 */ 15 16 17 TST_WCSCAT tst_wcscat_loc [] = { 18 19 { 20 {Twcscat, TST_LOC_de}, 21 { 22 /* 1 */ 23 {{{ 0x00C1,0x00C2,0x0000 }, 24 { 0x00C3,0x00C4,0x0000 }, }, 25 { 0, 0, 0, 26 { 0x00C1,0x00C2,0x00C3,0x00C4,0x0000 } }, 27 }, 28 /* 2 */ 29 {{{ 0x0001,0x0002,0x0000 }, 30 { 0x0003,0x0004,0x0000 }, }, 31 { 0, 0, 0, 32 { 0x0001,0x0002,0x0003,0x0004,0x0000 } }, 33 }, 34 /* 3 */ 35 {{{ 0x0000 }, 36 { 0x00C3,0x00C4,0x0000 }, }, 37 { 0, 0, 0, 38 { 0x00C3,0x00C4,0x0000 } }, 39 }, 40 /* 4 */ 41 {{{ 0x0001,0xFFFF,0x0000 }, 42 { 0x0080,0x0090,0x0000 }, }, 43 { 0, 0, 0, 44 { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } }, 45 }, 46 {.is_last = 1} 47 } 48 }, 49 { 50 {Twcscat, TST_LOC_enUS}, 51 { 52 /* 1 */ 53 {{{ 0x0041,0x0042,0x0000 }, 54 { 0x0043,0x0044,0x0000 }, }, 55 { 0, 0, 0, 56 { 0x0041,0x0042,0x0043,0x0044,0x0000 } }, 57 }, 58 /* 2 */ 59 {{{ 0x0001,0x0002,0x0000 }, 60 { 0x0003,0x0004,0x0000 }, }, 61 { 0, 0, 0, 62 { 0x0001,0x0002,0x0003,0x0004,0x0000 } }, 63 }, 64 /* 3 */ 65 {{{ 0x0000 }, 66 { 0x0043,0x0044,0x0000 }, }, 67 { 0, 0, 0, 68 { 0x0043,0x0044,0x0000 } }, 69 }, 70 /* 4 */ 71 {{{ 0x0001,0xFFFF,0x0000 }, 72 { 0x0080,0x0090,0x0000 }, }, 73 { 0, 0, 0, 74 { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } }, 75 }, 76 {.is_last = 1} 77 } 78 }, 79 { 80 {Twcscat, TST_LOC_eucJP}, 81 { 82 /* 1 */ 83 {{{ 0x30A2,0x74E0,0x0000 }, 84 { 0xFF71,0x0041,0x0000 }, }, 85 { 0, 0, 0, 86 { 0x30A2,0x74E0,0xFF71,0x0041,0x0000 } }, 87 }, 88 /* 2 */ 89 {{{ 0x0001,0x0002,0x0000 }, 90 { 0x0003,0x0004,0x0000 }, }, 91 { 0, 0, 0, 92 { 0x0001,0x0002,0x0003,0x0004,0x0000 } }, 93 }, 94 /* 3 */ 95 {{{ 0x30A2,0xFF71,0x0000 }, 96 { 0x0000 }, }, 97 { 0, 0, 0, 98 { 0x30A2,0xFF71,0x0000 } }, 99 }, 100 /* 4 */ 101 {{{ 0x0001,0xFFFF,0x0000 }, 102 { 0x0080,0x0090,0x0000 }, }, 103 { 0, 0, 0, 104 { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } }, 105 }, 106 {.is_last = 1} 107 } 108 }, 109 { 110 {Twcscat, TST_LOC_end} 111 } 112 }; 113