summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/state.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/state.c b/test/state.c
index d32a1ea..b0974ef 100644
--- a/test/state.c
+++ b/test/state.c
@@ -230,13 +230,11 @@ test_serialisation(struct xkb_keymap *keymap)
static void
test_repeat(struct xkb_keymap *keymap)
{
- xkb_keycode_t key;
- fprintf(stderr, "%s\n", xkb_map_get_as_string(keymap));
- for (key = keymap->min_key_code; key < keymap->max_key_code; key++)
- if (xkb_key_repeats(keymap, key))
- fprintf(stderr, "%d repeats!\n", key);
assert(!xkb_key_repeats(keymap, KEY_LEFTSHIFT + 8));
assert(xkb_key_repeats(keymap, KEY_A + 8));
+ assert(xkb_key_repeats(keymap, KEY_8 + 8));
+ assert(xkb_key_repeats(keymap, KEY_DOWN + 8));
+ assert(xkb_key_repeats(keymap, KEY_KBDILLUMDOWN + 8));
}
int