|
@@ -720,7 +720,7 @@ static void test_visitor_in_union_in_union(TestInputVisitorData *data,
|
|
|
|
|
|
visit_type_TestUnionInUnion(v, NULL, &tmp, &error_abort);
|
|
visit_type_TestUnionInUnion(v, NULL, &tmp, &error_abort);
|
|
g_assert_cmpint(tmp->type, ==, TEST_UNION_ENUM_VALUE_A);
|
|
g_assert_cmpint(tmp->type, ==, TEST_UNION_ENUM_VALUE_A);
|
|
- g_assert_cmpint(tmp->u.value_a.type_a, ==, TEST_UNION_ENUMA_VALUE_A1);
|
|
|
|
|
|
+ g_assert_cmpint(tmp->u.value_a.type_a, ==, TEST_UNION_ENUM_A_VALUE_A1);
|
|
g_assert_cmpint(tmp->u.value_a.u.value_a1.integer, ==, 2);
|
|
g_assert_cmpint(tmp->u.value_a.u.value_a1.integer, ==, 2);
|
|
g_assert_cmpint(strcmp(tmp->u.value_a.u.value_a1.name, "fish"), ==, 0);
|
|
g_assert_cmpint(strcmp(tmp->u.value_a.u.value_a1.name, "fish"), ==, 0);
|
|
|
|
|
|
@@ -734,7 +734,7 @@ static void test_visitor_in_union_in_union(TestInputVisitorData *data,
|
|
|
|
|
|
visit_type_TestUnionInUnion(v, NULL, &tmp, &error_abort);
|
|
visit_type_TestUnionInUnion(v, NULL, &tmp, &error_abort);
|
|
g_assert_cmpint(tmp->type, ==, TEST_UNION_ENUM_VALUE_A);
|
|
g_assert_cmpint(tmp->type, ==, TEST_UNION_ENUM_VALUE_A);
|
|
- g_assert_cmpint(tmp->u.value_a.type_a, ==, TEST_UNION_ENUMA_VALUE_A2);
|
|
|
|
|
|
+ g_assert_cmpint(tmp->u.value_a.type_a, ==, TEST_UNION_ENUM_A_VALUE_A2);
|
|
g_assert_cmpint(tmp->u.value_a.u.value_a2.integer, ==, 1729);
|
|
g_assert_cmpint(tmp->u.value_a.u.value_a2.integer, ==, 1729);
|
|
g_assert_cmpint(tmp->u.value_a.u.value_a2.size, ==, 87539319);
|
|
g_assert_cmpint(tmp->u.value_a.u.value_a2.size, ==, 87539319);
|
|
|
|
|