blob: b6dd275fd1964b8f0f79788019aa5456fad54d8e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
3 *
4 * FILE: dat_towlower.c
5 *
6 * ISW*: int towlower (wint_t wc);
7 */
8
9
10#include "dat_tow-funcs.h"
11
12
13TST_TOW_LOC (LOWER, lower) = {
14
15 { TST_TOW_REC (de, lower)
16 {
17 { { WEOF }, { 0, 1, (wint_t)-1 } },
18 { { 0x0080 }, { 0, 1, 0x0080 } },
19 { { 0x00CC }, { 0, 1, 0x00EC } },
20 { { 0x00EC }, { 0, 1, 0x00EC } },
21 { .is_last = 1 } /* Last element. */
22 }
23 },
24 { TST_TOW_REC (enUS, lower)
25 {
26 { { WEOF }, { 0, 1, (wint_t)-1 } },
27 { { 0x007F }, { 0, 1, 0x007F } },
28 { { 0x0041 }, { 0, 1, 0x0061 } },
29 { { 0x0061 }, { 0, 1, 0x0061 } },
30 { .is_last = 1 } /* Last element. */
31 }
32 },
33#if 0
34 { TST_TOW_REC (eucJP, lower)
35#else
36 { TST_TOW_REC (ja_UTF8, lower)
37#endif
38 {
39 { { 0x007F }, { 0, 1, 0x007F } },
40 { { 0x0080 }, { 0, 1, 0x0080 } },
41 { { 0xFF21 }, { 0, 1, 0xFF41 } },
42 { { 0xFF41 }, { 0, 1, 0xFF41 } },
43 { .is_last = 1 } /* Last element. */
44 }
45 },
46 { TST_TOW_REC (end, lower) }
47};