summaryrefslogtreecommitdiff
path: root/test/locale-mbwc/dat_towupper.c
blob: 704ad44a66094556c44d9c6ef4596f91fed77c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
 *
 *	 FILE:	dat_towupper.c
 *
 *	 ISW*:	int towupper (wint_t wc);
 */


#include "dat_tow-funcs.h"


TST_TOW_LOC (UPPER, upper) = {

  {   TST_TOW_REC (de, upper)
      {
	{  { WEOF   }, { 0,  1, (wint_t)-1 }	},
	{  { 0x0080 }, { 0,  1, 0x0080     }	},
	{  { 0x00EC }, { 0,  1, 0x00CC     }	},
	{  { 0x00CC }, { 0,  1, 0x00CC     }	},
	{ .is_last = 1 } /* Last element.	 */
      }
  },
  {   TST_TOW_REC (enUS, upper)
      {
	{  { WEOF   }, { 0,  1, (wint_t)-1 }	},
	{  { 0x0080 }, { 0,  1, 0x0080     }	},
	{  { 0x0041 }, { 0,  1, 0x0041     }	},
	{  { 0x0061 }, { 0,  1, 0x0041     }	},
	{ .is_last = 1 } /* Last element.	 */
      }
  },
#if 0
  {   TST_TOW_REC (eucJP, upper)
#else
  {   TST_TOW_REC (ja_UTF8, upper)
#endif
      {
	{  { WEOF   }, { 0,  1, (wint_t)-1 }	},
	{  { 0x007F }, { 0,  1, 0x007F     }	},
	{  { 0xFF41 }, { 0,  1, 0xFF21     }	},
	{  { 0xFF21 }, { 0,  1, 0xFF21     }	},
	{ .is_last = 1 } /* Last element.	 */
      }
  },
  {   TST_TOW_REC (end, upper) }
};