From efa99624320f54e6e1ff24e4c4b1fcecdfba43d5 Mon Sep 17 00:00:00 2001 From: M Hickford Date: Mon, 24 Jan 2022 02:16:08 +0100 Subject: Variants should inherit iso639, iso3166 and brief from parent layout if omitted (#266) --- test/registry.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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); -- cgit v1.2.1