Lines Matching refs:assert
87 assert(test_string("Undo", 0xFF65)); in main()
88 assert(test_string("ThisKeyShouldNotExist", XKB_KEY_NoSymbol)); in main()
89 assert(test_string("XF86_Switch_VT_5", 0x1008FE05)); in main()
90 assert(test_string("VoidSymbol", 0xFFFFFF)); in main()
91 assert(test_string("U4567", 0x1004567)); in main()
92 assert(test_string("0x10203040", 0x10203040)); in main()
93 assert(test_string("a", 0x61)); in main()
94 assert(test_string("A", 0x41)); in main()
95 assert(test_string("ch", 0xfea0)); in main()
96 assert(test_string("Ch", 0xfea1)); in main()
97 assert(test_string("CH", 0xfea2)); in main()
98 assert(test_string("THORN", 0x00de)); in main()
99 assert(test_string("Thorn", 0x00de)); in main()
100 assert(test_string("thorn", 0x00fe)); in main()
102 assert(test_keysym(0x1008FF56, "XF86Close")); in main()
103 assert(test_keysym(0x0, "NoSymbol")); in main()
104 assert(test_keysym(0x1008FE20, "XF86Ungrab")); in main()
105 assert(test_keysym(0x01001234, "U1234")); in main()
107 assert(test_keysym(0x010002DE, "U02DE")); in main()
109 assert(test_keysym(0x0101F4A9, "U0001F4A9")); in main()
111 assert(test_casestring("Undo", 0xFF65)); in main()
112 assert(test_casestring("UNDO", 0xFF65)); in main()
113 assert(test_casestring("A", 0x61)); in main()
114 assert(test_casestring("a", 0x61)); in main()
115 assert(test_casestring("ThisKeyShouldNotExist", XKB_KEY_NoSymbol)); in main()
116 assert(test_casestring("XF86_Switch_vT_5", 0x1008FE05)); in main()
117 assert(test_casestring("xF86_SwitcH_VT_5", 0x1008FE05)); in main()
118 assert(test_casestring("xF86SwiTch_VT_5", 0x1008FE05)); in main()
119 assert(test_casestring("xF86Switch_vt_5", 0x1008FE05)); in main()
120 assert(test_casestring("VoidSymbol", 0xFFFFFF)); in main()
121 assert(test_casestring("vOIDsymBol", 0xFFFFFF)); in main()
122 assert(test_casestring("U4567", 0x1004567)); in main()
123 assert(test_casestring("u4567", 0x1004567)); in main()
124 assert(test_casestring("0x10203040", 0x10203040)); in main()
125 assert(test_casestring("0X10203040", 0x10203040)); in main()
126 assert(test_casestring("THORN", 0x00fe)); in main()
127 assert(test_casestring("Thorn", 0x00fe)); in main()
128 assert(test_casestring("thorn", 0x00fe)); in main()
130 assert(test_utf8(XKB_KEY_y, "y")); in main()
131 assert(test_utf8(XKB_KEY_u, "u")); in main()
132 assert(test_utf8(XKB_KEY_m, "m")); in main()
133 assert(test_utf8(XKB_KEY_Cyrillic_em, "м")); in main()
134 assert(test_utf8(XKB_KEY_Cyrillic_u, "у")); in main()
135 assert(test_utf8(XKB_KEY_exclam, "!")); in main()
136 assert(test_utf8(XKB_KEY_oslash, "ø")); in main()
137 assert(test_utf8(XKB_KEY_hebrew_aleph, "א")); in main()
138 assert(test_utf8(XKB_KEY_Arabic_sheen, "ش")); in main()
140 assert(test_utf8(XKB_KEY_space, " ")); in main()
141 assert(test_utf8(XKB_KEY_KP_Space, " ")); in main()
142 assert(test_utf8(XKB_KEY_BackSpace, "\b")); in main()
143 assert(test_utf8(XKB_KEY_Escape, "\033")); in main()
144 assert(test_utf8(XKB_KEY_KP_Separator, ",")); in main()
145 assert(test_utf8(XKB_KEY_KP_Decimal, ".")); in main()
146 assert(test_utf8(XKB_KEY_Tab, "\t")); in main()
147 assert(test_utf8(XKB_KEY_KP_Tab, "\t")); in main()
148 assert(test_utf8(XKB_KEY_hyphen, "")); in main()
149 assert(test_utf8(XKB_KEY_Linefeed, "\n")); in main()
150 assert(test_utf8(XKB_KEY_Return, "\r")); in main()
151 assert(test_utf8(XKB_KEY_KP_Enter, "\r")); in main()
152 assert(test_utf8(XKB_KEY_KP_Equal, "=")); in main()
153 assert(test_utf8(XKB_KEY_9, "9")); in main()
154 assert(test_utf8(XKB_KEY_KP_9, "9")); in main()
155 assert(test_utf8(XKB_KEY_KP_Multiply, "*")); in main()
156 assert(test_utf8(XKB_KEY_KP_Subtract, "-")); in main()
158 assert(xkb_keysym_is_lower(XKB_KEY_a)); in main()
159 assert(xkb_keysym_is_lower(XKB_KEY_Greek_lambda)); in main()
160 assert(xkb_keysym_is_lower(xkb_keysym_from_name("U03b1", 0))); /* GREEK SMALL LETTER ALPHA */ in main()
161 …assert(xkb_keysym_is_lower(xkb_keysym_from_name("U03af", 0))); /* GREEK SMALL LETTER IOTA WITH TON… in main()
163 assert(xkb_keysym_is_upper(XKB_KEY_A)); in main()
164 assert(xkb_keysym_is_upper(XKB_KEY_Greek_LAMBDA)); in main()
165 assert(xkb_keysym_is_upper(xkb_keysym_from_name("U0391", 0))); /* GREEK CAPITAL LETTER ALPHA */ in main()
166 …assert(xkb_keysym_is_upper(xkb_keysym_from_name("U0388", 0))); /* GREEK CAPITAL LETTER EPSILON WIT… in main()
168 assert(!xkb_keysym_is_upper(XKB_KEY_a)); in main()
169 assert(!xkb_keysym_is_lower(XKB_KEY_A)); in main()
170 assert(!xkb_keysym_is_lower(XKB_KEY_Return)); in main()
171 assert(!xkb_keysym_is_upper(XKB_KEY_Return)); in main()
172 assert(!xkb_keysym_is_lower(XKB_KEY_hebrew_aleph)); in main()
173 assert(!xkb_keysym_is_upper(XKB_KEY_hebrew_aleph)); in main()
174 assert(!xkb_keysym_is_upper(xkb_keysym_from_name("U05D0", 0))); /* HEBREW LETTER ALEF */ in main()
175 assert(!xkb_keysym_is_lower(xkb_keysym_from_name("U05D0", 0))); /* HEBREW LETTER ALEF */ in main()
176 assert(!xkb_keysym_is_lower(XKB_KEY_8)); in main()
177 assert(!xkb_keysym_is_upper(XKB_KEY_8)); in main()
179 assert(xkb_keysym_is_keypad(XKB_KEY_KP_Enter)); in main()
180 assert(xkb_keysym_is_keypad(XKB_KEY_KP_6)); in main()
181 assert(xkb_keysym_is_keypad(XKB_KEY_KP_Add)); in main()
182 assert(!xkb_keysym_is_keypad(XKB_KEY_Num_Lock)); in main()
183 assert(!xkb_keysym_is_keypad(XKB_KEY_1)); in main()
184 assert(!xkb_keysym_is_keypad(XKB_KEY_Return)); in main()
186 assert(xkb_keysym_to_upper(XKB_KEY_a) == XKB_KEY_A); in main()
187 assert(xkb_keysym_to_upper(XKB_KEY_A) == XKB_KEY_A); in main()
188 assert(xkb_keysym_to_lower(XKB_KEY_a) == XKB_KEY_a); in main()
189 assert(xkb_keysym_to_lower(XKB_KEY_A) == XKB_KEY_a); in main()
190 assert(xkb_keysym_to_upper(XKB_KEY_Return) == XKB_KEY_Return); in main()
191 assert(xkb_keysym_to_lower(XKB_KEY_Return) == XKB_KEY_Return); in main()
192 assert(xkb_keysym_to_upper(XKB_KEY_Greek_lambda) == XKB_KEY_Greek_LAMBDA); in main()
193 assert(xkb_keysym_to_upper(XKB_KEY_Greek_LAMBDA) == XKB_KEY_Greek_LAMBDA); in main()
194 assert(xkb_keysym_to_lower(XKB_KEY_Greek_lambda) == XKB_KEY_Greek_lambda); in main()
195 assert(xkb_keysym_to_lower(XKB_KEY_Greek_LAMBDA) == XKB_KEY_Greek_lambda); in main()
196 assert(xkb_keysym_to_upper(XKB_KEY_eacute) == XKB_KEY_Eacute); in main()
197 assert(xkb_keysym_to_lower(XKB_KEY_Eacute) == XKB_KEY_eacute); in main()