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

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* CharacterDataTest.vala
 *
 * Copyright (C) 2011-2013  Richard Schwarting <aquarichy@gmail.com>
 * Copyright (C) 2011-2015  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:
 *      Richard Schwarting <aquarichy@gmail.com>
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.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_CHARACTER_DATA_TEST (character_data_test_get_type ())
#define CHARACTER_DATA_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHARACTER_DATA_TEST, CharacterDataTest))
#define CHARACTER_DATA_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHARACTER_DATA_TEST, CharacterDataTestClass))
#define IS_CHARACTER_DATA_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHARACTER_DATA_TEST))
#define IS_CHARACTER_DATA_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHARACTER_DATA_TEST))
#define CHARACTER_DATA_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHARACTER_DATA_TEST, CharacterDataTestClass))

typedef struct _CharacterDataTest CharacterDataTest;
typedef struct _CharacterDataTestClass CharacterDataTestClass;
typedef struct _CharacterDataTestPrivate CharacterDataTestPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_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 _CharacterDataTest {
	GXmlTest parent_instance;
	CharacterDataTestPrivate * priv;
};

struct _CharacterDataTestClass {
	GXmlTestClass parent_class;
};


static gpointer character_data_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 character_data_test_get_type (void) G_GNUC_CONST;
enum  {
	CHARACTER_DATA_TEST_DUMMY_PROPERTY
};
void character_data_test_add_tests (void);
static void __lambda87_ (void);
GXmlxText* gxml_test_get_text_new_doc (const gchar* data, GXmlxDocument** doc);
static void ___lambda87__gcallback (void);
static void __lambda88_ (void);
static void ___lambda88__gcallback (void);
static void __lambda89_ (void);
static void ___lambda89__gcallback (void);
static void __lambda90_ (void);
static void ___lambda90__gcallback (void);
static void __lambda91_ (void);
static void ___lambda91__gcallback (void);
static void __lambda92_ (void);
static void ___lambda92__gcallback (void);
static void __lambda93_ (void);
static void ___lambda93__gcallback (void);
CharacterDataTest* character_data_test_new (void);
CharacterDataTest* character_data_test_construct (GType object_type);
GXmlTest* gxml_test_new (void);
GXmlTest* gxml_test_construct (GType object_type);


static void __lambda87_ (void) {
	gchar* str = NULL;
	gchar* _tmp0_ = NULL;
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	GXmlxText* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 30 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp0_ = g_strdup ("It does not do to dwell on dreams and forget to live, remember that.");
#line 30 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	str = _tmp0_;
#line 32 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp2_ = gxml_test_get_text_new_doc (str, &_tmp1_);
#line 32 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 32 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp1_;
#line 32 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp2_;
#line 34 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp3_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 34 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp4_ = _tmp3_;
#line 34 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp4_, str) == 0, "txt.data == str");
#line 35 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp5_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 35 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp6_ = _tmp5_;
#line 35 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp7_ = gxml_xnode_get_node_value ((GXmlxNode*) txt);
#line 35 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp8_ = _tmp7_;
#line 35 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp6_, _tmp8_) == 0, "txt.data == txt.node_value");
#line 29 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 29 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 29 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_free0 (str);
#line 167 "CharacterDataTest.c"
}


static void ___lambda87__gcallback (void) {
#line 29 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda87_ ();
#line 174 "CharacterDataTest.c"
}


static void __lambda88_ (void) {
	gchar* str = NULL;
	gchar* _tmp0_ = NULL;
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	GXmlxText* _tmp2_ = NULL;
	gulong _tmp3_ = 0UL;
	gulong _tmp4_ = 0UL;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
#line 38 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp0_ = g_strdup ("After all, to the well-organized mind, death is but the next great adv" \
"enture.");
#line 38 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	str = _tmp0_;
#line 40 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp2_ = gxml_test_get_text_new_doc (str, &_tmp1_);
#line 40 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 40 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp1_;
#line 40 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp2_;
#line 42 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp3_ = gxml_xcharacter_data_get_length ((GXmlxCharacterData*) txt);
#line 42 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp4_ = _tmp3_;
#line 42 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp5_ = strlen (str);
#line 42 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp6_ = _tmp5_;
#line 42 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (_tmp4_ == ((gulong) _tmp6_), "txt.length == str.length");
#line 37 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 37 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 37 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_free0 (str);
#line 217 "CharacterDataTest.c"
}


static void ___lambda88__gcallback (void) {
#line 37 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda88_ ();
#line 224 "CharacterDataTest.c"
}


static void __lambda89_ (void) {
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxText* _tmp1_ = NULL;
	gchar* str = NULL;
	gchar* _tmp2_ = NULL;
#line 46 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp1_ = gxml_test_get_text_new_doc ("The trouble is, humans do have a knack of choosing precisely those thi" \
"ngs that are worst for them.", &_tmp0_);
#line 46 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 46 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp0_;
#line 46 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp1_;
#line 47 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp2_ = gxml_xcharacter_data_substring_data ((GXmlxCharacterData*) txt, (gulong) 4, (gulong) 7);
#line 47 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	str = _tmp2_;
#line 49 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (str, "trouble") == 0, "str == \"trouble\"");
#line 44 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_free0 (str);
#line 44 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 44 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 255 "CharacterDataTest.c"
}


static void ___lambda89__gcallback (void) {
#line 44 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda89_ ();
#line 262 "CharacterDataTest.c"
}


static void __lambda90_ (void) {
	gchar* str_start = NULL;
	gchar* _tmp0_ = NULL;
	gchar* str_whole = NULL;
	gchar* _tmp1_ = NULL;
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp2_ = NULL;
	GXmlxText* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
#line 54 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp0_ = g_strdup ("Never trust anything that can think for itself");
#line 54 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	str_start = _tmp0_;
#line 55 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp1_ = g_strdup ("Never trust anything that can think for itself if you can't see where " \
"it keeps its brain.");
#line 55 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	str_whole = _tmp1_;
#line 57 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp3_ = gxml_test_get_text_new_doc ("Never trust anything that can think for itself", &_tmp2_);
#line 57 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 57 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp2_;
#line 57 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp3_;
#line 59 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp4_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 59 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp5_ = _tmp4_;
#line 59 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp5_, str_start) == 0, "txt.data == str_start");
#line 60 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_append_data ((GXmlxCharacterData*) txt, " if you can't see where it keeps its brain.");
#line 61 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp6_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 61 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp7_ = _tmp6_;
#line 61 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp7_, str_whole) == 0, "txt.data == str_whole");
#line 53 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 53 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 53 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_free0 (str_whole);
#line 53 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_free0 (str_start);
#line 317 "CharacterDataTest.c"
}


static void ___lambda90__gcallback (void) {
#line 53 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda90_ ();
#line 324 "CharacterDataTest.c"
}


static void __lambda91_ (void) {
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxText* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gint _tmp8_ = 0;
	gint _tmp9_ = 0;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	gint _tmp14_ = 0;
	gint _tmp15_ = 0;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
#line 65 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp1_ = gxml_test_get_text_new_doc ("It is our choices that show what we are, far more than our abilities.", &_tmp0_);
#line 65 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 65 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp0_;
#line 65 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp1_;
#line 66 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_insert_data ((GXmlxCharacterData*) txt, (gulong) 35, " truly");
#line 67 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp2_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 67 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp3_ = _tmp2_;
#line 67 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp3_, "It is our choices that show what we truly are, far more than our abili" \
"ties.") == 0, "txt.data == \"It is our choices that show what we truly are, far more than our abilities.\"");
#line 69 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_insert_data ((GXmlxCharacterData*) txt, (gulong) 0, "Yes.  ");
#line 70 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp4_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 70 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp5_ = _tmp4_;
#line 70 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp5_, "Yes.  It is our choices that show what we truly are, far more than our" \
" abilities.") == 0, "txt.data == \"Yes.  It is our choices that show what we truly are, far more than our abilities.\"");
#line 72 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp6_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 72 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp7_ = _tmp6_;
#line 72 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp8_ = strlen (_tmp7_);
#line 72 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp9_ = _tmp8_;
#line 72 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_insert_data ((GXmlxCharacterData*) txt, (gulong) _tmp9_, "  Indeed.");
#line 73 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp10_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 73 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp11_ = _tmp10_;
#line 73 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp11_, "Yes.  It is our choices that show what we truly are, far more than our" \
" abilities.  Indeed.") == 0, "txt.data == \"Yes.  It is our choices that show what we truly are, far more than our abilities.  Indeed.\"");
#line 76 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp12_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 76 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp13_ = _tmp12_;
#line 76 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp14_ = strlen (_tmp13_);
#line 76 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp15_ = _tmp14_;
#line 76 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_insert_data ((GXmlxCharacterData*) txt, (gulong) (_tmp15_ + 1), "  Perhaps.");
#line 77 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp16_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 77 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp17_ = _tmp16_;
#line 77 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp17_, "Yes.  It is our choices that show what we truly are, far more than our" \
" abilities.  Indeed.") == 0, "txt.data == \"Yes.  It is our choices that show what we truly are, far more than our abilities.  Indeed.\"");
#line 80 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_insert_data ((GXmlxCharacterData*) txt, (gulong) (-1), "  No.");
#line 81 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp18_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 81 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp19_ = _tmp18_;
#line 81 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp19_, "Yes.  It is our choices that show what we truly are, far more than our" \
" abilities.  Indeed.") == 0, "txt.data == \"Yes.  It is our choices that show what we truly are, far more than our abilities.  Indeed.\"");
#line 63 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 63 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 419 "CharacterDataTest.c"
}


static void ___lambda91__gcallback (void) {
#line 63 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda91_ ();
#line 426 "CharacterDataTest.c"
}


static void __lambda92_ (void) {
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxText* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 85 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp1_ = gxml_test_get_text_new_doc ("Happiness can be found, even in the darkest of times, if one only reme" \
"mbers to turn on the light.", &_tmp0_);
#line 85 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 85 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp0_;
#line 85 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp1_;
#line 86 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_delete_data ((GXmlxCharacterData*) txt, (gulong) 14, (gulong) 65);
#line 87 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp2_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 87 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp3_ = _tmp2_;
#line 87 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp3_, "Happiness can turn on the light.") == 0, "txt.data == \"Happiness can turn on the light.\"");
#line 83 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 83 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 457 "CharacterDataTest.c"
}


static void ___lambda92__gcallback (void) {
#line 83 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda92_ ();
#line 464 "CharacterDataTest.c"
}


static void __lambda93_ (void) {
	GXmlxDocument* doc = NULL;
	GXmlxText* txt = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxText* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 94 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp1_ = gxml_test_get_text_new_doc ("In dreams, we enter a world that's entirely our own.", &_tmp0_);
#line 94 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 94 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	doc = _tmp0_;
#line 94 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	txt = _tmp1_;
#line 95 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	gxml_xcharacter_data_replace_data ((GXmlxCharacterData*) txt, (gulong) 3, (gulong) 6, "the refrigerator");
#line 96 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp2_ = gxml_xcharacter_data_get_data ((GXmlxCharacterData*) txt);
#line 96 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_tmp3_ = _tmp2_;
#line 96 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_vala_assert (g_strcmp0 (_tmp3_, "In the refrigerator, we enter a world that's entirely our own.") == 0, "txt.data == \"In the refrigerator, we enter a world that's entirely our own.\"");
#line 90 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (txt);
#line 90 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	_g_object_unref0 (doc);
#line 495 "CharacterDataTest.c"
}


static void ___lambda93__gcallback (void) {
#line 90 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	__lambda93_ ();
#line 502 "CharacterDataTest.c"
}


void character_data_test_add_tests (void) {
#line 29 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/data", ___lambda87__gcallback);
#line 37 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/length", ___lambda88__gcallback);
#line 44 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/substring_data", ___lambda89__gcallback);
#line 53 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/append_data", ___lambda90__gcallback);
#line 63 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/insert_data", ___lambda91__gcallback);
#line 83 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/delete_data", ___lambda92__gcallback);
#line 90 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	g_test_add_func ("/gxml/characterdata/replace_data", ___lambda93__gcallback);
#line 521 "CharacterDataTest.c"
}


CharacterDataTest* character_data_test_construct (GType object_type) {
	CharacterDataTest* self = NULL;
#line 27 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	self = (CharacterDataTest*) gxml_test_construct (object_type);
#line 27 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	return self;
#line 531 "CharacterDataTest.c"
}


CharacterDataTest* character_data_test_new (void) {
#line 27 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	return character_data_test_construct (TYPE_CHARACTER_DATA_TEST);
#line 538 "CharacterDataTest.c"
}


static void character_data_test_class_init (CharacterDataTestClass * klass) {
#line 27 "/home/despinosa/Proyectos/gxml/test/CharacterDataTest.vala"
	character_data_test_parent_class = g_type_class_peek_parent (klass);
#line 545 "CharacterDataTest.c"
}


static void character_data_test_instance_init (CharacterDataTest * self) {
}


GType character_data_test_get_type (void) {
	static volatile gsize character_data_test_type_id__volatile = 0;
	if (g_once_init_enter (&character_data_test_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (CharacterDataTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) character_data_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CharacterDataTest), 0, (GInstanceInitFunc) character_data_test_instance_init, NULL };
		GType character_data_test_type_id;
		character_data_test_type_id = g_type_register_static (TYPE_GXML_TEST, "CharacterDataTest", &g_define_type_info, 0);
		g_once_init_leave (&character_data_test_type_id__volatile, character_data_test_type_id);
	}
	return character_data_test_type_id__volatile;
}



