diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/registry.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/registry.c b/test/registry.c index 85a5b6e..54313ba 100644 --- a/test/registry.c +++ b/test/registry.c @@ -620,6 +620,7 @@ test_load_full(void) struct test_layout system_layouts[] = { {"l1", NO_VARIANT, "lbrief1", "ldesc1"}, {"l1", "v1", "vbrief1", "vdesc1"}, + {"l1", "v2", NULL, "vdesc2"}, {NULL}, }; struct test_option_group system_groups[] = { @@ -654,6 +655,11 @@ test_load_full(void) assert(cmp_layouts(&system_layouts[1], l)); rxkb_layout_unref(l); + l = fetch_layout(ctx, "l1", "v2"); + struct test_layout expected = {"l1", "v2", "lbrief1", "vdesc2"}; + assert(cmp_layouts(&expected, l)); + rxkb_layout_unref(l); + g = fetch_option_group(ctx, "grp1"); assert(cmp_option_groups(&system_groups[0], g, CMP_EXACT)); rxkb_option_group_unref(g); |