keymap = test_compile_string(ctx, "");
assert(!keymap);
+ /* Make sure we can recompile our output for a normal keymap from rules. */
+ keymap = test_compile_rules(ctx, NULL, NULL,
+ "ru,ca,de,us", ",multix,neo,intl", NULL);
+ assert(keymap);
+ dump = xkb_keymap_get_as_string(keymap, XKB_KEYMAP_USE_ORIGINAL_FORMAT);
+ assert(dump);
+ xkb_keymap_unref(keymap);
+ keymap = test_compile_string(ctx, dump);
+ assert(keymap);
+ xkb_keymap_unref(keymap);
+ free(dump);
+
xkb_context_unref(ctx);
return 0;