/* GomSchemaTest.c generated by valac 0.34.13, the Vala compiler
 * generated from GomSchemaTest.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* GomSchema.vala
 *
 * Copyright (C) 2017  Daniel Espinosa <esodan@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <gxml/gxml.h>


#define TYPE_GXML_TEST (gxml_test_get_type ())
#define GXML_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GXML_TEST, GXmlTest))
#define GXML_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GXML_TEST, GXmlTestClass))
#define IS_GXML_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GXML_TEST))
#define IS_GXML_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GXML_TEST))
#define GXML_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GXML_TEST, GXmlTestClass))

typedef struct _GXmlTest GXmlTest;
typedef struct _GXmlTestClass GXmlTestClass;
typedef struct _GXmlTestPrivate GXmlTestPrivate;

#define TYPE_GOM_SCHEMA_TEST (gom_schema_test_get_type ())
#define GOM_SCHEMA_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GOM_SCHEMA_TEST, GomSchemaTest))
#define GOM_SCHEMA_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GOM_SCHEMA_TEST, GomSchemaTestClass))
#define IS_GOM_SCHEMA_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GOM_SCHEMA_TEST))
#define IS_GOM_SCHEMA_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GOM_SCHEMA_TEST))
#define GOM_SCHEMA_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GOM_SCHEMA_TEST, GomSchemaTestClass))

typedef struct _GomSchemaTest GomSchemaTest;
typedef struct _GomSchemaTestClass GomSchemaTestClass;
typedef struct _GomSchemaTestPrivate GomSchemaTestPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _GXmlTest {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GXmlTestPrivate * priv;
};

struct _GXmlTestClass {
	GTypeClass parent_class;
	void (*finalize) (GXmlTest *self);
};

struct _GomSchemaTest {
	GXmlTest parent_instance;
	GomSchemaTestPrivate * priv;
};

struct _GomSchemaTestClass {
	GXmlTestClass parent_class;
};


static gpointer gom_schema_test_parent_class = NULL;

gpointer gxml_test_ref (gpointer instance);
void gxml_test_unref (gpointer instance);
GParamSpec* param_spec_gxml_test (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_gxml_test (GValue* value, gpointer v_object);
void value_take_gxml_test (GValue* value, gpointer v_object);
gpointer value_get_gxml_test (const GValue* value);
GType gxml_test_get_type (void) G_GNUC_CONST;
GType gom_schema_test_get_type (void) G_GNUC_CONST;
enum  {
	GOM_SCHEMA_TEST_0_PROPERTY
};
void gom_schema_test_add_tests (void);
static void __lambda283_ (void);
static void ___lambda283__gtest_func (void);
static void __lambda284_ (void);
static void ___lambda284__gtest_func (void);
GomSchemaTest* gom_schema_test_new (void);
GomSchemaTest* gom_schema_test_construct (GType object_type);
GXmlTest* gxml_test_new (void);
GXmlTest* gxml_test_construct (GType object_type);


static gpointer _g_object_ref0 (gpointer self) {
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	return self ? g_object_ref (self) : NULL;
#line 110 "GomSchemaTest.c"
}


static void __lambda283_ (void) {
	GError * _inner_error_ = NULL;
	{
		GFile* f = NULL;
		GFile* _tmp0_ = NULL;
		GFile* _tmp1_ = NULL;
		gboolean _tmp2_ = FALSE;
		GXmlGomXsdSchema* sch = NULL;
		GXmlGomXsdSchema* _tmp3_ = NULL;
		GXmlGomXsdSchema* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		GXmlGomXsdSchema* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		GXmlGomXsdSchema* _tmp10_ = NULL;
		GXmlGomXsdListSimpleTypes* _tmp11_ = NULL;
		GXmlGomXsdListSimpleTypes* _tmp12_ = NULL;
		GXmlDomElement* _tmp13_ = NULL;
		GXmlGomXsdSchema* _tmp14_ = NULL;
		GXmlGomXsdListSimpleTypes* _tmp15_ = NULL;
		GXmlGomXsdListSimpleTypes* _tmp16_ = NULL;
		GXmlDomElement* _tmp17_ = NULL;
		GXmlGomXsdSimpleType* st = NULL;
		GXmlGomXsdSimpleType* _tmp18_ = NULL;
		GXmlGomXsdSimpleType* _tmp19_ = NULL;
		GXmlGomXsdSimpleType* _tmp20_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp21_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp22_ = NULL;
		GXmlGomXsdSimpleType* _tmp23_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp24_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
		const gchar* _tmp27_ = NULL;
		GXmlGomXsdSimpleType* _tmp28_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp29_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp30_ = NULL;
		const gchar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
		GXmlGomXsdSimpleType* _tmp33_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp34_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp35_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp36_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp37_ = NULL;
		GXmlGomXsdSimpleType* _tmp38_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp39_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp40_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp41_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp42_ = NULL;
		gint _tmp43_ = 0;
		gint _tmp44_ = 0;
		GXmlDomElement* _tmp45_ = NULL;
		GXmlGomXsdSimpleType* _tmp46_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp47_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp48_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp49_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp50_ = NULL;
		GXmlDomElement* _tmp51_ = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* enumt1 = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* _tmp52_ = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* _tmp53_ = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* _tmp54_ = NULL;
		const gchar* _tmp55_ = NULL;
		const gchar* _tmp56_ = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* _tmp57_ = NULL;
		const gchar* _tmp58_ = NULL;
		const gchar* _tmp59_ = NULL;
		GXmlDomElement* _tmp60_ = NULL;
		GXmlGomXsdSimpleType* _tmp61_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp62_ = NULL;
		GXmlGomXsdTypeRestriction* _tmp63_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp64_ = NULL;
		GXmlGomXsdListTypeRestrictionEnumerations* _tmp65_ = NULL;
		GXmlDomElement* _tmp66_ = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* enumt20 = NULL;
		GXmlGomXsdTypeRestrictionEnumeration* _tmp67_ = NULL;
		const gchar* _tmp68_ = NULL;
		const gchar* _tmp69_ = NULL;
		const gchar* _tmp70_ = NULL;
		const gchar* _tmp71_ = NULL;
#line 29 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp0_ = g_file_new_for_path (TEST_DIR "/schema-test.xsd");
#line 29 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		f = _tmp0_;
#line 30 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp1_ = f;
#line 30 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp2_ = g_file_query_exists (_tmp1_, NULL);
#line 30 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp2_, "f.query_exists ()");
#line 31 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp3_ = gxml_gom_xsd_schema_new ();
#line 31 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		sch = _tmp3_;
#line 36 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp4_ = sch;
#line 36 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp5_ = gxml_dom_element_get_local_name ((GXmlDomElement*) _tmp4_);
#line 36 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp6_ = _tmp5_;
#line 36 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp7_ = _tmp6_;
#line 36 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (g_strcmp0 (_tmp7_, "schema") == 0, "sch.local_name == \"schema\"");
#line 36 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_free0 (_tmp7_);
#line 37 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp8_ = sch;
#line 37 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp9_ = f;
#line 37 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		gxml_gom_element_read_from_file ((GXmlGomElement*) _tmp8_, _tmp9_, NULL, &_inner_error_);
#line 37 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 37 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (sch);
#line 37 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (f);
#line 232 "GomSchemaTest.c"
			goto __catch344_g_error;
		}
#line 41 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp10_ = sch;
#line 41 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp11_ = gxml_gom_xsd_schema_get_simple_type_definitions (_tmp10_);
#line 41 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp12_ = _tmp11_;
#line 41 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp12_ != NULL, "sch.simple_type_definitions != null");
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp14_ = sch;
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp15_ = gxml_gom_xsd_schema_get_simple_type_definitions (_tmp14_);
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp16_ = _tmp15_;
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp17_ = gxml_gom_collection_get_item ((GXmlGomCollection*) _tmp16_, 0, &_inner_error_);
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp13_ = _tmp17_;
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (sch);
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (f);
#line 259 "GomSchemaTest.c"
			goto __catch344_g_error;
		}
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, GXML_TYPE_GOM_XSD_SIMPLE_TYPE) ? ((GXmlGomXsdSimpleType*) _tmp13_) : NULL);
#line 42 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		st = _tmp18_;
#line 43 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp19_ = st;
#line 43 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp19_ != NULL, "st != null");
#line 44 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp20_ = st;
#line 44 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp21_ = gxml_gom_xsd_simple_type_get_restriction (_tmp20_);
#line 44 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp22_ = _tmp21_;
#line 44 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp22_ != NULL, "st.restriction != null");
#line 45 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp23_ = st;
#line 45 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp24_ = gxml_gom_xsd_simple_type_get_restriction (_tmp23_);
#line 45 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp25_ = _tmp24_;
#line 45 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp26_ = gxml_gom_xsd_type_restriction_get_base (_tmp25_);
#line 45 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp27_ = _tmp26_;
#line 45 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp27_ != NULL, "st.restriction.base != null");
#line 46 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp28_ = st;
#line 46 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp29_ = gxml_gom_xsd_simple_type_get_restriction (_tmp28_);
#line 46 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp30_ = _tmp29_;
#line 46 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp31_ = gxml_gom_xsd_type_restriction_get_base (_tmp30_);
#line 46 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp32_ = _tmp31_;
#line 46 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (g_strcmp0 (_tmp32_, "xs:string") == 0, "st.restriction.base == \"xs:string\"");
#line 47 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp33_ = st;
#line 47 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp34_ = gxml_gom_xsd_simple_type_get_restriction (_tmp33_);
#line 47 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp35_ = _tmp34_;
#line 47 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp36_ = gxml_gom_xsd_type_restriction_get_enumerations (_tmp35_);
#line 47 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp37_ = _tmp36_;
#line 47 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp37_ != NULL, "st.restriction.enumerations != null");
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp38_ = st;
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp39_ = gxml_gom_xsd_simple_type_get_restriction (_tmp38_);
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp40_ = _tmp39_;
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp41_ = gxml_gom_xsd_type_restriction_get_enumerations (_tmp40_);
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp42_ = _tmp41_;
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp43_ = gxml_gom_xsd_list_get_length ((GXmlGomXsdList*) _tmp42_);
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp44_ = _tmp43_;
#line 48 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp44_ == 20, "st.restriction.enumerations.length == 20");
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp46_ = st;
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp47_ = gxml_gom_xsd_simple_type_get_restriction (_tmp46_);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp48_ = _tmp47_;
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp49_ = gxml_gom_xsd_type_restriction_get_enumerations (_tmp48_);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp50_ = _tmp49_;
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp51_ = gxml_gom_collection_get_item ((GXmlGomCollection*) _tmp50_, 0, &_inner_error_);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp45_ = _tmp51_;
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (st);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (_tmp13_);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (sch);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (f);
#line 354 "GomSchemaTest.c"
			goto __catch344_g_error;
		}
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp52_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp45_, GXML_TYPE_GOM_XSD_TYPE_RESTRICTION_ENUMERATION) ? ((GXmlGomXsdTypeRestrictionEnumeration*) _tmp45_) : NULL);
#line 49 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		enumt1 = _tmp52_;
#line 50 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp53_ = enumt1;
#line 50 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp53_ != NULL, "enumt1 != null");
#line 51 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp54_ = enumt1;
#line 51 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp55_ = gxml_gom_xsd_type_restriction_enumeration_get_value (_tmp54_);
#line 51 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp56_ = _tmp55_;
#line 51 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp56_ != NULL, "enumt1.value != null");
#line 52 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp57_ = enumt1;
#line 52 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp58_ = gxml_gom_xsd_type_restriction_enumeration_get_value (_tmp57_);
#line 52 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp59_ = _tmp58_;
#line 52 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (g_strcmp0 (_tmp59_, "01") == 0, "enumt1.value == \"01\"");
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp61_ = st;
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp62_ = gxml_gom_xsd_simple_type_get_restriction (_tmp61_);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp63_ = _tmp62_;
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp64_ = gxml_gom_xsd_type_restriction_get_enumerations (_tmp63_);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp65_ = _tmp64_;
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp66_ = gxml_gom_collection_get_item ((GXmlGomCollection*) _tmp65_, 19, &_inner_error_);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp60_ = _tmp66_;
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (enumt1);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (_tmp45_);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (st);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (_tmp13_);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (sch);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (f);
#line 409 "GomSchemaTest.c"
			goto __catch344_g_error;
		}
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp67_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp60_, GXML_TYPE_GOM_XSD_TYPE_RESTRICTION_ENUMERATION) ? ((GXmlGomXsdTypeRestrictionEnumeration*) _tmp60_) : NULL);
#line 53 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		enumt20 = _tmp67_;
#line 54 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (enumt20 != NULL, "enumt20 != null");
#line 55 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp68_ = gxml_gom_xsd_type_restriction_enumeration_get_value (enumt20);
#line 55 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp69_ = _tmp68_;
#line 55 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp69_ != NULL, "enumt20.value != null");
#line 56 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp70_ = gxml_gom_xsd_type_restriction_enumeration_get_value (enumt20);
#line 56 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp71_ = _tmp70_;
#line 56 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (g_strcmp0 (_tmp71_, "99") == 0, "enumt20.value == \"99\"");
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (enumt20);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (_tmp60_);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (enumt1);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (_tmp45_);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (st);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (_tmp13_);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (sch);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (f);
#line 446 "GomSchemaTest.c"
	}
	goto __finally344;
	__catch344_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp72_ = NULL;
		gchar* _tmp73_ = NULL;
		gchar* _tmp74_ = NULL;
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		e = _inner_error_;
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_inner_error_ = NULL;
#line 58 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp72_ = e->message;
#line 58 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp73_ = g_strconcat ("Error: ", _tmp72_, NULL);
#line 58 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp74_ = _tmp73_;
#line 58 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_message ("GomSchemaTest.vala:58: %s", _tmp74_);
#line 58 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_free0 (_tmp74_);
#line 59 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_assert_not_reached ();
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_error_free0 (e);
#line 473 "GomSchemaTest.c"
	}
	__finally344:
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_clear_error (&_inner_error_);
#line 28 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		return;
#line 484 "GomSchemaTest.c"
	}
}


static void ___lambda283__gtest_func (void) {
#line 27 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	__lambda283_ ();
#line 492 "GomSchemaTest.c"
}


static void __lambda284_ (void) {
	GError * _inner_error_ = NULL;
	{
		GFile* f = NULL;
		GFile* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
		GXmlGomXsdArrayString* ars = NULL;
		GXmlGomXsdArrayString* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
		gboolean _tmp6_ = FALSE;
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
		gboolean _tmp9_ = FALSE;
		gboolean _tmp10_ = FALSE;
#line 64 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp0_ = g_file_new_for_path (TEST_DIR "/schema-test.xsd");
#line 64 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		f = _tmp0_;
#line 65 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp1_ = g_file_query_exists (f, NULL);
#line 65 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp1_, "f.query_exists ()");
#line 66 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp2_ = gxml_gom_xsd_array_string_new ();
#line 66 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		ars = _tmp2_;
#line 67 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		gxml_gom_xsd_array_string_set_simple_type (ars, "MethodCode");
#line 68 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		gxml_gom_xsd_array_string_set_source (ars, f);
#line 69 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		gxml_gom_xsd_array_string_load (ars, &_inner_error_);
#line 69 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 69 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (ars);
#line 69 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
			_g_object_unref0 (f);
#line 536 "GomSchemaTest.c"
			goto __catch345_g_error;
		}
#line 70 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp3_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "01");
#line 70 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp3_, "ars.search (\"01\")");
#line 71 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp4_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "02");
#line 71 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp4_, "ars.search (\"02\")");
#line 72 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp5_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "03");
#line 72 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp5_, "ars.search (\"03\")");
#line 73 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp6_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "04");
#line 73 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp6_, "ars.search (\"04\")");
#line 74 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp7_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "05");
#line 74 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp7_, "ars.search (\"05\")");
#line 75 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp8_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "06");
#line 75 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp8_, "ars.search (\"06\")");
#line 76 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp9_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "07");
#line 76 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (!_tmp9_, "!ars.search (\"07\")");
#line 77 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp10_ = gxml_gom_array_string_search ((GXmlGomArrayString*) ars, "99");
#line 77 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_vala_assert (_tmp10_, "ars.search (\"99\")");
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (ars);
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_object_unref0 (f);
#line 575 "GomSchemaTest.c"
	}
	goto __finally345;
	__catch345_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		e = _inner_error_;
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_inner_error_ = NULL;
#line 79 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp11_ = e->message;
#line 79 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp12_ = g_strconcat ("Error: ", _tmp11_, NULL);
#line 79 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_tmp13_ = _tmp12_;
#line 79 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_message ("GomSchemaTest.vala:79: %s", _tmp13_);
#line 79 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_free0 (_tmp13_);
#line 80 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_assert_not_reached ();
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		_g_error_free0 (e);
#line 602 "GomSchemaTest.c"
	}
	__finally345:
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		g_clear_error (&_inner_error_);
#line 63 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
		return;
#line 613 "GomSchemaTest.c"
	}
}


static void ___lambda284__gtest_func (void) {
#line 62 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	__lambda284_ ();
#line 621 "GomSchemaTest.c"
}


void gom_schema_test_add_tests (void) {
#line 27 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	g_test_add_func ("/gxml/gom-schema/read", ___lambda283__gtest_func);
#line 62 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	g_test_add_func ("/gxml/xsd-array-string/attribute-enumeration", ___lambda284__gtest_func);
#line 630 "GomSchemaTest.c"
}


GomSchemaTest* gom_schema_test_construct (GType object_type) {
	GomSchemaTest* self = NULL;
#line 25 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	self = (GomSchemaTest*) gxml_test_construct (object_type);
#line 25 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	return self;
#line 640 "GomSchemaTest.c"
}


GomSchemaTest* gom_schema_test_new (void) {
#line 25 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	return gom_schema_test_construct (TYPE_GOM_SCHEMA_TEST);
#line 647 "GomSchemaTest.c"
}


static void gom_schema_test_class_init (GomSchemaTestClass * klass) {
#line 25 "/home/despinosa/Proyectos/gxml/test/GomSchemaTest.vala"
	gom_schema_test_parent_class = g_type_class_peek_parent (klass);
#line 654 "GomSchemaTest.c"
}


static void gom_schema_test_instance_init (GomSchemaTest * self) {
}


GType gom_schema_test_get_type (void) {
	static volatile gsize gom_schema_test_type_id__volatile = 0;
	if (g_once_init_enter (&gom_schema_test_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GomSchemaTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gom_schema_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GomSchemaTest), 0, (GInstanceInitFunc) gom_schema_test_instance_init, NULL };
		GType gom_schema_test_type_id;
		gom_schema_test_type_id = g_type_register_static (TYPE_GXML_TEST, "GomSchemaTest", &g_define_type_info, 0);
		g_once_init_leave (&gom_schema_test_type_id__volatile, gom_schema_test_type_id);
	}
	return gom_schema_test_type_id__volatile;
}



