• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
4  * COPYRIGHT:
5  * Copyright (c) 1997-2003, International Business Machines Corporation and
6  * others. All Rights Reserved.
7  ********************************************************************/
8 
9 #ifndef COLLATION_TEST_DATA
10 #define COLLATION_TEST_DATA
11 
12 #include "unicode/utypes.h"
13 
14 #define COUNT_TEST_CASES 13
15 
16 const UChar testSourceCases[][16] = {
17     {0x61, 0x62, 0x27, 0x63, 0},
18     {0x63, 0x6f, 0x2d, 0x6f, 0x70, 0},
19     {0x61, 0x62, 0},
20     {0x61, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x61, 0x64, 0},
21     {0x61, 0x6c, 0x6c, 0},
22     {0x66, 0x6f, 0x75, 0x72, 0},
23     {0x66, 0x69, 0x76, 0x65, 0},
24     {0x31, 0},
25     {0x31, 0},
26     {0x31, 0},                                            /*  10 */
27     {0x32, 0},
28     {0x32, 0},
29     {0x48, 0x65, 0x6c, 0x6c, 0x6f, 0},
30     {0x61, 0x3c, 0x62, 0},
31     {0x61, 0x3c, 0x62, 0},
32     {0x61, 0x63, 0x63, 0},
33     {0x61, 0x63, 0x48, 0x63, 0},  /*  simple test */
34     {0x70, 0x00EA, 0x63, 0x68, 0x65, 0},
35     {0x61, 0x62, 0x63, 0},
36     {0x61, 0x62, 0x63, 0},                                  /*  20 */
37     {0x61, 0x62, 0x63, 0},
38     {0x61, 0x62, 0x63, 0},
39     {0x61, 0x62, 0x63, 0},
40     {0x61, 0x00E6, 0x63, 0},
41     {0x61, 0x63, 0x48, 0x63, 0},  /*  primary test */
42     {0x62, 0x6c, 0x61, 0x63, 0x6b, 0},
43     {0x66, 0x6f, 0x75, 0x72, 0},
44     {0x66, 0x69, 0x76, 0x65, 0},
45     {0x31, 0},
46     {0x61, 0x62, 0x63, 0},                                        /*  30 */
47     {0x61, 0x62, 0x63, 0},
48     {0x61, 0x62, 0x63, 0x48, 0},
49     {0x61, 0x62, 0x63, 0},
50     {0x61, 0x63, 0x48, 0x63, 0},                              /*  34 */
51     {0x61, 0x63, 0x65, 0x30},
52     {0x31, 0x30},
53     {0x70, 0x00EA,0x30}                                    /* 37     */
54 };
55 
56 const UChar testTargetCases[][16] = {
57     {0x61, 0x62, 0x63, 0x27, 0},
58     {0x43, 0x4f, 0x4f, 0x50, 0},
59     {0x61, 0x62, 0x63, 0},
60     {0x26, 0},
61     {0x26, 0},
62     {0x34, 0},
63     {0x35, 0},
64     {0x6f, 0x6e, 0x65, 0},
65     {0x6e, 0x6e, 0x65, 0},
66     {0x70, 0x6e, 0x65, 0},                                  /*  10 */
67     {0x74, 0x77, 0x6f, 0},
68     {0x75, 0x77, 0x6f, 0},
69     {0x68, 0x65, 0x6c, 0x6c, 0x4f, 0},
70     {0x61, 0x3c, 0x3d, 0x62, 0},
71     {0x61, 0x62, 0x63, 0},
72     {0x61, 0x43, 0x48, 0x63, 0},
73     {0x61, 0x43, 0x48, 0x63, 0},  /*  simple test */
74     {0x70, (UChar)0x00E9, 0x63, 0x68, 0x00E9, 0},
75     {0x61, 0x62, 0x63, 0},
76     {0x61, 0x42, 0x43, 0},                                  /*  20 */
77     {0x61, 0x62, 0x63, 0x68, 0},
78     {0x61, 0x62, 0x64, 0},
79     {(UChar)0x00E4, 0x62, 0x63, 0},
80     {0x61, (UChar)0x00C6, 0x63, 0},
81     {0x61, 0x43, 0x48, 0x63, 0},  /*  primary test */
82     {0x62, 0x6c, 0x61, 0x63, 0x6b, 0x2d, 0x62, 0x69, 0x72, 0x64, 0},
83     {0x34, 0},
84     {0x35, 0},
85     {0x6f, 0x6e, 0x65, 0},
86     {0x61, 0x62, 0x63, 0},
87     {0x61, 0x42, 0x63, 0},                                  /*  30 */
88     {0x61, 0x62, 0x63, 0x68, 0},
89     {0x61, 0x62, 0x64, 0},
90     {0x61, 0x43, 0x48, 0x63, 0},                                /*  34 */
91     {0x61, 0x63, 0x65, 0x30},
92     {0x31, 0x30},
93     {0x70, (UChar)0x00EB,0x30}                                    /* 37 */
94 };
95 
96 const UChar testCases[][4] =
97 {
98     {0x61, 0},
99     {0x41, 0},
100     {0x00e4, 0},
101     {0x00c4, 0},
102     {0x61, 0x65, 0},
103     {0x61, 0x45, 0},
104     {0x41, 0x65, 0},
105     {0x41, 0x45, 0},
106     {(UChar)0x00e6, 0},
107     {(UChar)0x00c6, 0},
108     {0x62, 0},
109     {0x63, 0},
110     {0x7a, 0}
111 };
112 
113 #endif  /* #ifndef COLLATION_TEST_DATA */
114