/* context.c generated by valac 0.26.0.83-ed603, the Vala compiler
 * generated from context.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <libkkc-test.h>
#include <libkkc/libkkc-internals.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <locale.h>


#define TYPE_CONTEXT_TESTS (context_tests_get_type ())
#define CONTEXT_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTEXT_TESTS, ContextTests))
#define CONTEXT_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTEXT_TESTS, ContextTestsClass))
#define IS_CONTEXT_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTEXT_TESTS))
#define IS_CONTEXT_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTEXT_TESTS))
#define CONTEXT_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTEXT_TESTS, ContextTestsClass))

typedef struct _ContextTests ContextTests;
typedef struct _ContextTestsClass ContextTestsClass;
typedef struct _ContextTestsPrivate ContextTestsPrivate;
#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 _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 _ContextTests {
	KkcTestCase parent_instance;
	ContextTestsPrivate * priv;
};

struct _ContextTestsClass {
	KkcTestCaseClass parent_class;
};

struct _ContextTestsPrivate {
	KkcContext* context;
};


static gpointer context_tests_parent_class = NULL;

GType context_tests_get_type (void) G_GNUC_CONST;
#define CONTEXT_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONTEXT_TESTS, ContextTestsPrivate))
enum  {
	CONTEXT_TESTS_DUMMY_PROPERTY
};
ContextTests* context_tests_new (void);
ContextTests* context_tests_construct (GType object_type);
static void context_tests_test_properties (ContextTests* self);
static void _context_tests_test_properties_kkc_test_case_test_method (gpointer self);
static void context_tests_test_initial (ContextTests* self);
static void _context_tests_test_initial_kkc_test_case_test_method (gpointer self);
static void context_tests_test_kana (ContextTests* self);
static void _context_tests_test_kana_kkc_test_case_test_method (gpointer self);
static void context_tests_test_nicola (ContextTests* self);
static void _context_tests_test_nicola_kkc_test_case_test_method (gpointer self);
static void context_tests_test_sentence_conversion (ContextTests* self);
static void _context_tests_test_sentence_conversion_kkc_test_case_test_method (gpointer self);
static void context_tests_test_segment_conversion (ContextTests* self);
static void _context_tests_test_segment_conversion_kkc_test_case_test_method (gpointer self);
static void context_tests_real_set_up (KkcTestCase* base);
static void context_tests_real_tear_down (KkcTestCase* base);
static void context_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _context_tests_test_properties_kkc_test_case_test_method (gpointer self) {
#line 7 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_test_properties ((ContextTests*) self);
#line 78 "context.c"
}


static void _context_tests_test_initial_kkc_test_case_test_method (gpointer self) {
#line 8 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_test_initial ((ContextTests*) self);
#line 85 "context.c"
}


static void _context_tests_test_kana_kkc_test_case_test_method (gpointer self) {
#line 9 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_test_kana ((ContextTests*) self);
#line 92 "context.c"
}


static void _context_tests_test_nicola_kkc_test_case_test_method (gpointer self) {
#line 10 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_test_nicola ((ContextTests*) self);
#line 99 "context.c"
}


static void _context_tests_test_sentence_conversion_kkc_test_case_test_method (gpointer self) {
#line 11 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_test_sentence_conversion ((ContextTests*) self);
#line 106 "context.c"
}


static void _context_tests_test_segment_conversion_kkc_test_case_test_method (gpointer self) {
#line 12 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_test_segment_conversion ((ContextTests*) self);
#line 113 "context.c"
}


ContextTests* context_tests_construct (GType object_type) {
	ContextTests * self = NULL;
#line 5 "/home/ueno/devel/libkkc/tests/context.vala"
	self = (ContextTests*) kkc_test_case_construct (object_type, "Context");
#line 7 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_case_add_test ((KkcTestCase*) self, "properties", _context_tests_test_properties_kkc_test_case_test_method, self);
#line 8 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_case_add_test ((KkcTestCase*) self, "initial", _context_tests_test_initial_kkc_test_case_test_method, self);
#line 9 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_case_add_test ((KkcTestCase*) self, "kana", _context_tests_test_kana_kkc_test_case_test_method, self);
#line 10 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_case_add_test ((KkcTestCase*) self, "nicola", _context_tests_test_nicola_kkc_test_case_test_method, self);
#line 11 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_case_add_test ((KkcTestCase*) self, "sentence_conversion", _context_tests_test_sentence_conversion_kkc_test_case_test_method, self);
#line 12 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_case_add_test ((KkcTestCase*) self, "segment_conversion", _context_tests_test_segment_conversion_kkc_test_case_test_method, self);
#line 4 "/home/ueno/devel/libkkc/tests/context.vala"
	return self;
#line 135 "context.c"
}


ContextTests* context_tests_new (void) {
#line 4 "/home/ueno/devel/libkkc/tests/context.vala"
	return context_tests_construct (TYPE_CONTEXT_TESTS);
#line 142 "context.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 19 "/home/ueno/devel/libkkc/tests/context.vala"
	return self ? g_object_ref (self) : NULL;
#line 149 "context.c"
}


static void context_tests_test_properties (ContextTests* self) {
	KkcInputMode input_mode = 0;
	KkcContext* _tmp0_ = NULL;
	KkcInputMode _tmp1_ = 0;
	KkcInputMode _tmp2_ = 0;
	KkcContext* _tmp3_ = NULL;
	KkcInputMode _tmp4_ = 0;
	KkcDictionaryList* dictionaries = NULL;
	KkcContext* _tmp5_ = NULL;
	KkcDictionaryList* _tmp6_ = NULL;
	KkcDictionaryList* _tmp7_ = NULL;
	KkcDictionaryList* _tmp8_ = NULL;
	KkcContext* _tmp9_ = NULL;
	KkcDictionaryList* _tmp10_ = NULL;
	KkcPunctuationStyle style = 0;
	KkcContext* _tmp11_ = NULL;
	KkcPunctuationStyle _tmp12_ = 0;
	KkcPunctuationStyle _tmp13_ = 0;
	KkcPunctuationStyle _tmp14_ = 0;
	KkcContext* _tmp15_ = NULL;
	KkcContext* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	KkcContext* _tmp20_ = NULL;
	KkcPunctuationStyle _tmp21_ = 0;
	KkcPunctuationStyle _tmp22_ = 0;
	KkcContext* _tmp23_ = NULL;
	KkcPunctuationStyle _tmp24_ = 0;
	KkcContext* _tmp25_ = NULL;
	KkcContext* _tmp26_ = NULL;
	KkcRule* rule = NULL;
	KkcContext* _tmp27_ = NULL;
	KkcRule* _tmp28_ = NULL;
	KkcRule* _tmp29_ = NULL;
	KkcRule* _tmp30_ = NULL;
	KkcRule* _tmp31_ = NULL;
	KkcRule* _tmp32_ = NULL;
	KkcRuleMetadata* _tmp33_ = NULL;
	KkcRuleMetadata* _tmp34_ = NULL;
	const gchar* _tmp35_ = NULL;
	const gchar* _tmp36_ = NULL;
	KkcRuleMetadata* metadata = NULL;
	KkcRuleMetadata* _tmp37_ = NULL;
	KkcRule* _tmp38_ = NULL;
	KkcRule* _tmp39_ = NULL;
	KkcContext* _tmp40_ = NULL;
	KkcContext* _tmp41_ = NULL;
	KkcKeyEvent* _tmp42_ = NULL;
	KkcKeyEvent* _tmp43_ = NULL;
	KkcContext* _tmp44_ = NULL;
	KkcRule* _tmp45_ = NULL;
	KkcCandidateList* candidates = NULL;
	KkcSegmentList* segments = NULL;
	gchar* input = NULL;
	KkcKeyEventFilter* filter = NULL;
	KkcContext* _tmp46_ = NULL;
	KkcContext* _tmp47_ = NULL;
	KkcDictionaryList* _tmp48_ = NULL;
	KkcInputMode _tmp49_ = 0;
	KkcPunctuationStyle _tmp50_ = 0;
	KkcRule* _tmp51_ = NULL;
	GError * _inner_error_ = NULL;
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	g_return_if_fail (self != NULL);
#line 16 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = self->priv->context;
#line 16 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = kkc_context_get_input_mode (_tmp0_);
#line 16 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = _tmp1_;
#line 16 "/home/ueno/devel/libkkc/tests/context.vala"
	input_mode = _tmp2_;
#line 17 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = self->priv->context;
#line 17 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp4_ = input_mode;
#line 17 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_input_mode (_tmp3_, _tmp4_);
#line 19 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp5_ = self->priv->context;
#line 19 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp6_ = kkc_context_get_dictionaries (_tmp5_);
#line 19 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp7_ = _tmp6_;
#line 19 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 19 "/home/ueno/devel/libkkc/tests/context.vala"
	dictionaries = _tmp8_;
#line 20 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp9_ = self->priv->context;
#line 20 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp10_ = dictionaries;
#line 20 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_dictionaries (_tmp9_, _tmp10_);
#line 22 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp11_ = self->priv->context;
#line 22 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp12_ = kkc_context_get_punctuation_style (_tmp11_);
#line 22 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp13_ = _tmp12_;
#line 22 "/home/ueno/devel/libkkc/tests/context.vala"
	style = _tmp13_;
#line 23 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp14_ = style;
#line 23 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp14_ == KKC_PUNCTUATION_STYLE_JA_JA, "style == Kkc.PunctuationStyle.JA_JA");
#line 24 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp15_ = self->priv->context;
#line 24 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_punctuation_style (_tmp15_, KKC_PUNCTUATION_STYLE_EN_EN);
#line 263 "context.c"
	{
		KkcContext* _tmp16_ = NULL;
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp16_ = self->priv->context;
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp16_, ". RET", &_inner_error_);
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 274 "context.c"
				goto __catch0_kkc_key_event_format_error;
			}
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_object_unref0 (dictionaries);
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 26 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 285 "context.c"
		}
	}
	goto __finally0;
	__catch0_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 25 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 25 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 28 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 25 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 300 "context.c"
	}
	__finally0:
#line 25 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 25 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (dictionaries);
#line 25 "/home/ueno/devel/libkkc/tests/context.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 25 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 25 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 313 "context.c"
	}
#line 30 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp17_ = self->priv->context;
#line 30 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp18_ = kkc_context_poll_output (_tmp17_);
#line 30 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp19_ = _tmp18_;
#line 30 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp19_, "．") == 0, "context.poll_output () == \"\357\274\216\"");
#line 30 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp19_);
#line 31 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp20_ = self->priv->context;
#line 31 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp21_ = kkc_context_get_punctuation_style (_tmp20_);
#line 31 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp22_ = _tmp21_;
#line 31 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp22_ == KKC_PUNCTUATION_STYLE_EN_EN, "context.punctuation_style == Kkc.PunctuationStyle.EN_EN");
#line 32 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp23_ = self->priv->context;
#line 32 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp24_ = style;
#line 32 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_punctuation_style (_tmp23_, _tmp24_);
#line 33 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp25_ = self->priv->context;
#line 33 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp25_);
#line 34 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp26_ = self->priv->context;
#line 34 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp26_);
#line 36 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp27_ = self->priv->context;
#line 36 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp28_ = kkc_context_get_typing_rule (_tmp27_);
#line 36 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp29_ = _tmp28_;
#line 36 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp30_ = _g_object_ref0 (_tmp29_);
#line 36 "/home/ueno/devel/libkkc/tests/context.vala"
	rule = _tmp30_;
#line 37 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp31_ = rule;
#line 37 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp31_ != NULL, "rule != null");
#line 38 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp32_ = rule;
#line 38 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp33_ = kkc_rule_get_metadata (_tmp32_);
#line 38 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp34_ = _tmp33_;
#line 38 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp35_ = kkc_metadata_file_get_name ((KkcMetadataFile*) _tmp34_);
#line 38 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp36_ = _tmp35_;
#line 38 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp36_, "default") == 0, "rule.metadata.name == \"default\"");
#line 40 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp37_ = kkc_rule_metadata_find ("kana");
#line 40 "/home/ueno/devel/libkkc/tests/context.vala"
	metadata = _tmp37_;
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp39_ = kkc_rule_new (metadata, &_inner_error_);
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp38_ = _tmp39_;
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (rule);
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (dictionaries);
#line 41 "/home/ueno/devel/libkkc/tests/context.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 41 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 395 "context.c"
	}
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp40_ = self->priv->context;
#line 41 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_typing_rule (_tmp40_, _tmp38_);
#line 42 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp41_ = self->priv->context;
#line 42 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp42_ = kkc_key_event_new_from_x_event ((guint) 132, (guint) 0x5c, 0);
#line 42 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp43_ = _tmp42_;
#line 42 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_event (_tmp41_, _tmp43_);
#line 42 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp43_);
#line 43 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp44_ = self->priv->context;
#line 43 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp45_ = rule;
#line 43 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_typing_rule (_tmp44_, _tmp45_);
#line 50 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp46_ = self->priv->context;
#line 50 "/home/ueno/devel/libkkc/tests/context.vala"
	g_object_get ((GObject*) _tmp46_, "dictionaries", &dictionaries, "candidates", &candidates, "segments", &segments, "input", &input, "input-mode", &input_mode, "punctuation-style", &style, "typing-rule", &rule, "key-event-filter", &filter, NULL);
#line 58 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp47_ = self->priv->context;
#line 58 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp48_ = dictionaries;
#line 58 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp49_ = input_mode;
#line 58 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp50_ = style;
#line 58 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp51_ = rule;
#line 58 "/home/ueno/devel/libkkc/tests/context.vala"
	g_object_set ((GObject*) _tmp47_, "dictionaries", _tmp48_, "input-mode", _tmp49_, "punctuation-style", _tmp50_, "typing-rule", _tmp51_, NULL);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (filter);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (input);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (segments);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (candidates);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp38_);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (metadata);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (rule);
#line 15 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (dictionaries);
#line 449 "context.c"
}


static void context_tests_test_initial (ContextTests* self) {
	gchar* srcdir = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	KkcContext* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	KkcInputMode input_mode = 0;
	KkcContext* _tmp5_ = NULL;
	KkcInputMode _tmp6_ = 0;
	KkcInputMode _tmp7_ = 0;
	KkcContext* _tmp9_ = NULL;
	KkcInputMode _tmp10_ = 0;
	KkcInputMode _tmp11_ = 0;
	KkcContext* _tmp12_ = NULL;
	KkcContext* _tmp13_ = NULL;
	KkcContext* _tmp14_ = NULL;
	KkcContext* _tmp16_ = NULL;
	KkcContext* _tmp17_ = NULL;
	KkcContext* _tmp19_ = NULL;
	KkcContext* _tmp20_ = NULL;
	KkcContext* _tmp22_ = NULL;
	KkcContext* _tmp23_ = NULL;
	KkcContext* _tmp25_ = NULL;
	KkcContext* _tmp26_ = NULL;
	KkcContext* _tmp28_ = NULL;
	KkcContext* _tmp29_ = NULL;
	KkcContext* _tmp31_ = NULL;
	KkcContext* _tmp32_ = NULL;
	KkcContext* _tmp34_ = NULL;
	gboolean _tmp35_ = FALSE;
	KkcContext* _tmp36_ = NULL;
	gchar* _tmp37_ = NULL;
	gchar* _tmp38_ = NULL;
	KkcContext* _tmp39_ = NULL;
	gboolean _tmp40_ = FALSE;
	KkcContext* _tmp41_ = NULL;
	KkcContext* _tmp42_ = NULL;
	KkcContext* _tmp44_ = NULL;
	KkcCandidateList* _tmp45_ = NULL;
	KkcCandidateList* _tmp46_ = NULL;
	gint _tmp47_ = 0;
	gint _tmp48_ = 0;
	KkcContext* _tmp49_ = NULL;
	KkcCandidateList* _tmp50_ = NULL;
	KkcCandidateList* _tmp51_ = NULL;
	KkcCandidate* _tmp52_ = NULL;
	KkcCandidate* _tmp53_ = NULL;
	const gchar* _tmp54_ = NULL;
	const gchar* _tmp55_ = NULL;
	KkcContext* _tmp56_ = NULL;
	KkcCandidateList* _tmp57_ = NULL;
	KkcCandidateList* _tmp58_ = NULL;
	KkcCandidate* _tmp59_ = NULL;
	KkcCandidate* _tmp60_ = NULL;
	const gchar* _tmp61_ = NULL;
	const gchar* _tmp62_ = NULL;
	KkcContext* _tmp63_ = NULL;
	KkcContext* _tmp64_ = NULL;
	KkcContext* _tmp66_ = NULL;
	KkcContext* _tmp67_ = NULL;
	KkcContext* _tmp93_ = NULL;
	KkcContext* _tmp94_ = NULL;
	KkcContext* _tmp108_ = NULL;
	KkcContext* _tmp109_ = NULL;
	GError * _inner_error_ = NULL;
#line 64 "/home/ueno/devel/libkkc/tests/context.vala"
	g_return_if_fail (self != NULL);
#line 65 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = g_getenv ("srcdir");
#line 65 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 65 "/home/ueno/devel/libkkc/tests/context.vala"
	srcdir = _tmp1_;
#line 66 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (srcdir != NULL, "srcdir != null");
#line 67 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = self->priv->context;
#line 67 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = g_build_filename (srcdir, "conversions-initial.json", NULL);
#line 67 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp4_ = _tmp3_;
#line 67 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_utils_do_conversions (_tmp2_, _tmp4_);
#line 67 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp4_);
#line 72 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp5_ = self->priv->context;
#line 72 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp6_ = kkc_context_get_input_mode (_tmp5_);
#line 72 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp7_ = _tmp6_;
#line 72 "/home/ueno/devel/libkkc/tests/context.vala"
	input_mode = _tmp7_;
#line 547 "context.c"
	{
		KkcContext* _tmp8_ = NULL;
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp8_ = self->priv->context;
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp8_, "A-l", &_inner_error_);
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 558 "context.c"
				goto __catch1_kkc_key_event_format_error;
			}
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 74 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 569 "context.c"
		}
	}
	goto __finally1;
	__catch1_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 73 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 73 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 76 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 73 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 584 "context.c"
	}
	__finally1:
#line 73 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 73 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 73 "/home/ueno/devel/libkkc/tests/context.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 73 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 73 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 597 "context.c"
	}
#line 78 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp9_ = self->priv->context;
#line 78 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp10_ = kkc_context_get_input_mode (_tmp9_);
#line 78 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp11_ = _tmp10_;
#line 78 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp11_ == KKC_INPUT_MODE_LATIN, "context.input_mode == Kkc.InputMode.LATIN");
#line 79 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp12_ = self->priv->context;
#line 79 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp12_);
#line 80 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp13_ = self->priv->context;
#line 80 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp13_);
#line 81 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp14_ = self->priv->context;
#line 81 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_input_mode (_tmp14_, input_mode);
#line 619 "context.c"
	{
		KkcContext* _tmp15_ = NULL;
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp15_ = self->priv->context;
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp15_, "(alt a)", &_inner_error_);
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 630 "context.c"
				goto __catch2_kkc_key_event_format_error;
			}
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 641 "context.c"
		}
	}
	goto __finally2;
	__catch2_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 83 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 83 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 86 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 83 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 656 "context.c"
	}
	__finally2:
#line 83 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 83 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 83 "/home/ueno/devel/libkkc/tests/context.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 83 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 83 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 669 "context.c"
	}
#line 88 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp16_ = self->priv->context;
#line 88 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp16_);
#line 89 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp17_ = self->priv->context;
#line 89 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp17_);
#line 679 "context.c"
	{
		KkcContext* _tmp18_ = NULL;
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp18_ = self->priv->context;
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp18_, "(alt", &_inner_error_);
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 690 "context.c"
				goto __catch3_kkc_key_event_format_error;
			}
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 92 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 701 "context.c"
		}
#line 93 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 705 "context.c"
	}
	goto __finally3;
	__catch3_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 91 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 91 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 91 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 717 "context.c"
	}
	__finally3:
#line 91 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 91 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 91 "/home/ueno/devel/libkkc/tests/context.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 91 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 91 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 730 "context.c"
	}
#line 96 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp19_ = self->priv->context;
#line 96 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp19_);
#line 97 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp20_ = self->priv->context;
#line 97 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp20_);
#line 740 "context.c"
	{
		KkcContext* _tmp21_ = NULL;
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp21_ = self->priv->context;
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp21_, "((", &_inner_error_);
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 751 "context.c"
				goto __catch4_kkc_key_event_format_error;
			}
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 100 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 762 "context.c"
		}
#line 101 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 766 "context.c"
	}
	goto __finally4;
	__catch4_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 99 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 99 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 99 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 778 "context.c"
	}
	__finally4:
#line 99 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 99 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 99 "/home/ueno/devel/libkkc/tests/context.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 99 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 99 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 791 "context.c"
	}
#line 104 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp22_ = self->priv->context;
#line 104 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp22_);
#line 105 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp23_ = self->priv->context;
#line 105 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp23_);
#line 801 "context.c"
	{
		KkcContext* _tmp24_ = NULL;
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp24_ = self->priv->context;
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp24_, ")", &_inner_error_);
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 812 "context.c"
				goto __catch5_kkc_key_event_format_error;
			}
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 108 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 823 "context.c"
		}
#line 109 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 827 "context.c"
	}
	goto __finally5;
	__catch5_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 107 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 107 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 107 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 839 "context.c"
	}
	__finally5:
#line 107 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 107 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 107 "/home/ueno/devel/libkkc/tests/context.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 107 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 107 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 852 "context.c"
	}
#line 112 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp25_ = self->priv->context;
#line 112 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp25_);
#line 113 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp26_ = self->priv->context;
#line 113 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp26_);
#line 862 "context.c"
	{
		KkcContext* _tmp27_ = NULL;
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp27_ = self->priv->context;
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp27_, "\\(", &_inner_error_);
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 873 "context.c"
				goto __catch6_kkc_key_event_format_error;
			}
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 116 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 884 "context.c"
		}
	}
	goto __finally6;
	__catch6_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 115 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 115 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 118 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 115 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 899 "context.c"
	}
	__finally6:
#line 115 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 115 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 115 "/home/ueno/devel/libkkc/tests/context.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 115 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 115 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 912 "context.c"
	}
#line 120 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp28_ = self->priv->context;
#line 120 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp28_);
#line 121 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp29_ = self->priv->context;
#line 121 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp29_);
#line 922 "context.c"
	{
		KkcContext* _tmp30_ = NULL;
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp30_ = self->priv->context;
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp30_, "foo", &_inner_error_);
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 933 "context.c"
				goto __catch7_kkc_key_event_format_error;
			}
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 124 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 944 "context.c"
		}
#line 125 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 948 "context.c"
	}
	goto __finally7;
	__catch7_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 123 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 123 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 123 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 960 "context.c"
	}
	__finally7:
#line 123 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 123 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 123 "/home/ueno/devel/libkkc/tests/context.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 123 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 123 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 973 "context.c"
	}
#line 128 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp31_ = self->priv->context;
#line 128 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp31_);
#line 129 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp32_ = self->priv->context;
#line 129 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp32_);
#line 983 "context.c"
	{
		KkcContext* _tmp33_ = NULL;
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp33_ = self->priv->context;
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp33_, "a RET", &_inner_error_);
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 994 "context.c"
				goto __catch8_kkc_key_event_format_error;
			}
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 132 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1005 "context.c"
		}
	}
	goto __finally8;
	__catch8_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 131 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 131 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 134 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 131 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 1020 "context.c"
	}
	__finally8:
#line 131 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 131 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 131 "/home/ueno/devel/libkkc/tests/context.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 131 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 131 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1033 "context.c"
	}
#line 136 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp34_ = self->priv->context;
#line 136 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp35_ = kkc_context_has_output (_tmp34_);
#line 136 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp35_, "context.has_output ()");
#line 137 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp36_ = self->priv->context;
#line 137 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp37_ = kkc_context_peek_output (_tmp36_);
#line 137 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp38_ = _tmp37_;
#line 137 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp38_, "あ") == 0, "context.peek_output () == \"\343\201\202\"");
#line 137 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp38_);
#line 138 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp39_ = self->priv->context;
#line 138 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp40_ = kkc_context_has_output (_tmp39_);
#line 138 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp40_, "context.has_output ()");
#line 139 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp41_ = self->priv->context;
#line 139 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp41_);
#line 140 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp42_ = self->priv->context;
#line 140 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp42_);
#line 1065 "context.c"
	{
		KkcContext* _tmp43_ = NULL;
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp43_ = self->priv->context;
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp43_, "a i SPC RET a i SPC SPC", &_inner_error_);
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1076 "context.c"
				goto __catch9_kkc_key_event_format_error;
			}
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 143 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1087 "context.c"
		}
	}
	goto __finally9;
	__catch9_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 142 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 142 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 145 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 142 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 1102 "context.c"
	}
	__finally9:
#line 142 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 142 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 142 "/home/ueno/devel/libkkc/tests/context.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 142 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 142 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1115 "context.c"
	}
#line 147 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp44_ = self->priv->context;
#line 147 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp45_ = kkc_context_get_candidates (_tmp44_);
#line 147 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp46_ = _tmp45_;
#line 147 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp47_ = kkc_candidate_list_get_size (_tmp46_);
#line 147 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp48_ = _tmp47_;
#line 147 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp48_ > 0, "context.candidates.size > 0");
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp49_ = self->priv->context;
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp50_ = kkc_context_get_candidates (_tmp49_);
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp51_ = _tmp50_;
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp52_ = kkc_candidate_list_get (_tmp51_, 0);
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp53_ = _tmp52_;
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp54_ = kkc_candidate_get_output (_tmp53_);
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp55_ = _tmp54_;
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp55_, "愛") == 0, "context.candidates.get (0).output == \"\346\204\233\"");
#line 148 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp53_);
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp56_ = self->priv->context;
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp57_ = kkc_context_get_candidates (_tmp56_);
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp58_ = _tmp57_;
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp59_ = kkc_candidate_list_get (_tmp58_, 0);
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp60_ = _tmp59_;
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp61_ = kkc_candidate_get_annotation (_tmp60_);
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp62_ = _tmp61_;
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp62_, "a") == 0, "context.candidates.get (0).annotation == \"a\"");
#line 149 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp60_);
#line 150 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp63_ = self->priv->context;
#line 150 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp63_);
#line 151 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp64_ = self->priv->context;
#line 151 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp64_);
#line 1173 "context.c"
	{
		KkcContext* _tmp65_ = NULL;
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp65_ = self->priv->context;
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp65_, "k C-g", &_inner_error_);
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1184 "context.c"
				goto __catch10_kkc_key_event_format_error;
			}
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 154 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1195 "context.c"
		}
	}
	goto __finally10;
	__catch10_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 153 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 153 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 156 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 153 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 1210 "context.c"
	}
	__finally10:
#line 153 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 153 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 153 "/home/ueno/devel/libkkc/tests/context.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 153 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 153 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1223 "context.c"
	}
#line 158 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp66_ = self->priv->context;
#line 158 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp66_);
#line 159 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp67_ = self->priv->context;
#line 159 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp67_);
#line 1233 "context.c"
	{
		KkcContext* _tmp68_ = NULL;
		gboolean _tmp69_ = FALSE;
		KkcContext* _tmp70_ = NULL;
		gboolean _tmp71_ = FALSE;
		KkcContext* _tmp72_ = NULL;
		gint _tmp73_ = 0;
		gint _tmp74_ = 0;
		gboolean _tmp75_ = FALSE;
		KkcContext* _tmp76_ = NULL;
		gboolean _tmp77_ = FALSE;
		KkcContext* _tmp78_ = NULL;
		gint _tmp79_ = 0;
		gint _tmp80_ = 0;
		gboolean _tmp81_ = FALSE;
		KkcContext* _tmp82_ = NULL;
		gboolean _tmp83_ = FALSE;
		KkcContext* _tmp84_ = NULL;
		gint _tmp85_ = 0;
		gint _tmp86_ = 0;
		gboolean _tmp87_ = FALSE;
		KkcContext* _tmp88_ = NULL;
		gboolean _tmp89_ = FALSE;
		KkcContext* _tmp90_ = NULL;
		gint _tmp91_ = 0;
		gint _tmp92_ = 0;
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp68_ = self->priv->context;
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp68_, "a a a", &_inner_error_);
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1268 "context.c"
				goto __catch11_kkc_key_event_format_error;
			}
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 162 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1279 "context.c"
		}
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp70_ = self->priv->context;
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp71_ = kkc_context_process_key_events (_tmp70_, "Left", &_inner_error_);
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp69_ = _tmp71_;
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1291 "context.c"
				goto __catch11_kkc_key_event_format_error;
			}
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1302 "context.c"
		}
#line 163 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp69_, "context.process_key_events (\"Left\")");
#line 164 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp72_ = self->priv->context;
#line 164 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp73_ = kkc_context_get_input_cursor_pos (_tmp72_);
#line 164 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp74_ = _tmp73_;
#line 164 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp74_ == 2, "context.input_cursor_pos == 2");
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp76_ = self->priv->context;
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp77_ = kkc_context_process_key_events (_tmp76_, "Right", &_inner_error_);
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp75_ = _tmp77_;
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1324 "context.c"
				goto __catch11_kkc_key_event_format_error;
			}
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1335 "context.c"
		}
#line 165 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp75_, "context.process_key_events (\"Right\")");
#line 166 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp78_ = self->priv->context;
#line 166 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp79_ = kkc_context_get_input_cursor_pos (_tmp78_);
#line 166 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp80_ = _tmp79_;
#line 166 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp80_ == (-1), "context.input_cursor_pos == -1");
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp82_ = self->priv->context;
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp83_ = kkc_context_process_key_events (_tmp82_, "Home", &_inner_error_);
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp81_ = _tmp83_;
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1357 "context.c"
				goto __catch11_kkc_key_event_format_error;
			}
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1368 "context.c"
		}
#line 167 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp81_, "context.process_key_events (\"Home\")");
#line 168 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp84_ = self->priv->context;
#line 168 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp85_ = kkc_context_get_input_cursor_pos (_tmp84_);
#line 168 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp86_ = _tmp85_;
#line 168 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp86_ == 0, "context.input_cursor_pos == 0");
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp88_ = self->priv->context;
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp89_ = kkc_context_process_key_events (_tmp88_, "End", &_inner_error_);
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp87_ = _tmp89_;
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1390 "context.c"
				goto __catch11_kkc_key_event_format_error;
			}
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1401 "context.c"
		}
#line 169 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp87_, "context.process_key_events (\"End\")");
#line 170 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp90_ = self->priv->context;
#line 170 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp91_ = kkc_context_get_input_cursor_pos (_tmp90_);
#line 170 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp92_ = _tmp91_;
#line 170 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp92_ == 2, "context.input_cursor_pos == 2");
#line 1413 "context.c"
	}
	goto __finally11;
	__catch11_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 161 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 161 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 172 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 161 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 1427 "context.c"
	}
	__finally11:
#line 161 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 161 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 161 "/home/ueno/devel/libkkc/tests/context.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 161 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 161 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1440 "context.c"
	}
#line 174 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp93_ = self->priv->context;
#line 174 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp93_);
#line 175 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp94_ = self->priv->context;
#line 175 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp94_);
#line 1450 "context.c"
	{
		KkcContext* _tmp95_ = NULL;
		gboolean _tmp96_ = FALSE;
		KkcContext* _tmp97_ = NULL;
		gboolean _tmp98_ = FALSE;
		gboolean _tmp99_ = FALSE;
		KkcContext* _tmp100_ = NULL;
		gboolean _tmp101_ = FALSE;
		gboolean _tmp102_ = FALSE;
		KkcContext* _tmp103_ = NULL;
		gboolean _tmp104_ = FALSE;
		gboolean _tmp105_ = FALSE;
		KkcContext* _tmp106_ = NULL;
		gboolean _tmp107_ = FALSE;
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp95_ = self->priv->context;
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_context_process_key_events (_tmp95_, "a a a RET", &_inner_error_);
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1473 "context.c"
				goto __catch12_kkc_key_event_format_error;
			}
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 178 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1484 "context.c"
		}
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp97_ = self->priv->context;
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp98_ = kkc_context_process_key_events (_tmp97_, "Left", &_inner_error_);
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp96_ = _tmp98_;
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1496 "context.c"
				goto __catch12_kkc_key_event_format_error;
			}
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1507 "context.c"
		}
#line 179 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (!_tmp96_, "!context.process_key_events (\"Left\")");
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp100_ = self->priv->context;
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp101_ = kkc_context_process_key_events (_tmp100_, "Right", &_inner_error_);
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp99_ = _tmp101_;
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1521 "context.c"
				goto __catch12_kkc_key_event_format_error;
			}
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1532 "context.c"
		}
#line 180 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (!_tmp99_, "!context.process_key_events (\"Right\")");
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp103_ = self->priv->context;
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp104_ = kkc_context_process_key_events (_tmp103_, "Home", &_inner_error_);
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp102_ = _tmp104_;
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1546 "context.c"
				goto __catch12_kkc_key_event_format_error;
			}
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1557 "context.c"
		}
#line 181 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (!_tmp102_, "!context.process_key_events (\"Home\")");
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp106_ = self->priv->context;
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp107_ = kkc_context_process_key_events (_tmp106_, "End", &_inner_error_);
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp105_ = _tmp107_;
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
#line 1571 "context.c"
				goto __catch12_kkc_key_event_format_error;
			}
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
			g_clear_error (&_inner_error_);
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
			return;
#line 1582 "context.c"
		}
#line 182 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (!_tmp105_, "!context.process_key_events (\"End\")");
#line 1586 "context.c"
	}
	goto __finally12;
	__catch12_kkc_key_event_format_error:
	{
		GError* e = NULL;
#line 177 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 177 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 184 "/home/ueno/devel/libkkc/tests/context.vala"
		g_assert_not_reached ();
#line 177 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 1600 "context.c"
	}
	__finally12:
#line 177 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 177 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 177 "/home/ueno/devel/libkkc/tests/context.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 177 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 177 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1613 "context.c"
	}
#line 186 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp108_ = self->priv->context;
#line 186 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp108_);
#line 187 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp109_ = self->priv->context;
#line 187 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp109_);
#line 64 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (srcdir);
#line 1625 "context.c"
}


static void context_tests_test_kana (ContextTests* self) {
	KkcRuleMetadata* metadata = NULL;
	KkcRuleMetadata* _tmp0_ = NULL;
	KkcRule* _tmp1_ = NULL;
	KkcRuleMetadata* _tmp2_ = NULL;
	KkcRule* _tmp3_ = NULL;
	KkcContext* _tmp4_ = NULL;
	KkcContext* _tmp5_ = NULL;
	KkcContext* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	KkcContext* _tmp10_ = NULL;
	KkcContext* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	KkcContext* _tmp14_ = NULL;
	KkcContext* _tmp15_ = NULL;
	KkcContext* _tmp16_ = NULL;
	KkcContext* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	KkcContext* _tmp21_ = NULL;
	KkcContext* _tmp22_ = NULL;
	KkcSegmentList* _tmp23_ = NULL;
	KkcSegmentList* _tmp24_ = NULL;
	gchar* _tmp25_ = NULL;
	gchar* _tmp26_ = NULL;
	KkcContext* _tmp27_ = NULL;
	KkcContext* _tmp28_ = NULL;
	KkcContext* _tmp29_ = NULL;
	KkcContext* _tmp30_ = NULL;
	gchar* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	KkcContext* _tmp34_ = NULL;
	KkcContext* _tmp35_ = NULL;
	KkcContext* _tmp36_ = NULL;
	KkcContext* _tmp37_ = NULL;
	gchar* _tmp38_ = NULL;
	gchar* _tmp39_ = NULL;
	gchar* _tmp40_ = NULL;
	KkcContext* _tmp41_ = NULL;
	KkcContext* _tmp42_ = NULL;
	KkcContext* _tmp43_ = NULL;
	KkcContext* _tmp44_ = NULL;
	gchar* _tmp45_ = NULL;
	gchar* _tmp46_ = NULL;
	gchar* _tmp47_ = NULL;
	KkcContext* _tmp48_ = NULL;
	gint _tmp49_ = 0;
	gint _tmp50_ = 0;
	KkcContext* _tmp51_ = NULL;
	KkcContext* _tmp52_ = NULL;
	KkcContext* _tmp53_ = NULL;
	KkcContext* _tmp54_ = NULL;
	gchar* _tmp55_ = NULL;
	gchar* _tmp56_ = NULL;
	gchar* _tmp57_ = NULL;
	KkcContext* _tmp58_ = NULL;
	gint _tmp59_ = 0;
	gint _tmp60_ = 0;
	KkcContext* _tmp61_ = NULL;
	KkcContext* _tmp62_ = NULL;
	GError * _inner_error_ = NULL;
#line 190 "/home/ueno/devel/libkkc/tests/context.vala"
	g_return_if_fail (self != NULL);
#line 191 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = kkc_rule_metadata_find ("kana");
#line 191 "/home/ueno/devel/libkkc/tests/context.vala"
	metadata = _tmp0_;
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = metadata;
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = kkc_rule_new (_tmp2_, &_inner_error_);
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = _tmp3_;
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 192 "/home/ueno/devel/libkkc/tests/context.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 192 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1717 "context.c"
	}
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp4_ = self->priv->context;
#line 192 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_typing_rule (_tmp4_, _tmp1_);
#line 194 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp5_ = self->priv->context;
#line 194 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp5_, "4", &_inner_error_);
#line 194 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 194 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 194 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 194 "/home/ueno/devel/libkkc/tests/context.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 194 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 194 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1739 "context.c"
	}
#line 195 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp6_ = self->priv->context;
#line 195 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp7_ = kkc_context_get_input (_tmp6_);
#line 195 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp8_ = _tmp7_;
#line 195 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp9_ = _tmp8_;
#line 195 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp9_, "う") == 0, "context.input == \"\343\201\206\"");
#line 195 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp9_);
#line 196 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp10_ = self->priv->context;
#line 196 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp10_, "RET", &_inner_error_);
#line 196 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 196 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 196 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 196 "/home/ueno/devel/libkkc/tests/context.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 196 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 196 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1769 "context.c"
	}
#line 197 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp11_ = self->priv->context;
#line 197 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp12_ = kkc_context_poll_output (_tmp11_);
#line 197 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp13_ = _tmp12_;
#line 197 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp13_, "う") == 0, "context.poll_output () == \"\343\201\206\"");
#line 197 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp13_);
#line 198 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp14_ = self->priv->context;
#line 198 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp14_);
#line 199 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp15_ = self->priv->context;
#line 199 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp15_);
#line 201 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp16_ = self->priv->context;
#line 201 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp16_, "3", &_inner_error_);
#line 201 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 201 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 201 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 201 "/home/ueno/devel/libkkc/tests/context.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 201 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 201 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1805 "context.c"
	}
#line 202 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp17_ = self->priv->context;
#line 202 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp18_ = kkc_context_get_input (_tmp17_);
#line 202 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp19_ = _tmp18_;
#line 202 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp20_ = _tmp19_;
#line 202 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp20_, "あ") == 0, "context.input == \"\343\201\202\"");
#line 202 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp20_);
#line 203 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp21_ = self->priv->context;
#line 203 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp21_, "SPC", &_inner_error_);
#line 203 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 203 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 203 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 203 "/home/ueno/devel/libkkc/tests/context.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 203 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 203 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1835 "context.c"
	}
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp22_ = self->priv->context;
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp23_ = kkc_context_get_segments (_tmp22_);
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp24_ = _tmp23_;
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp25_ = kkc_segment_list_get_output (_tmp24_);
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp26_ = _tmp25_;
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp26_, "阿") == 0, "context.segments.get_output () == \"\351\230\277\"");
#line 204 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp26_);
#line 205 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp27_ = self->priv->context;
#line 205 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp27_);
#line 206 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp28_ = self->priv->context;
#line 206 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp28_);
#line 209 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp29_ = self->priv->context;
#line 209 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp29_, "3 3 3 3 3 Left 4 Right", &_inner_error_);
#line 209 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 209 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 209 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 209 "/home/ueno/devel/libkkc/tests/context.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 209 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 209 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1875 "context.c"
	}
#line 210 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp30_ = self->priv->context;
#line 210 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp31_ = kkc_context_get_input (_tmp30_);
#line 210 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp32_ = _tmp31_;
#line 210 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp33_ = _tmp32_;
#line 210 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp33_, "ああああうあ") == 0, "context.input == \"\343\201\202\343\201\202\343\201\202\343\201\202\343\201\206\343\201\202\"");
#line 210 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp33_);
#line 211 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp34_ = self->priv->context;
#line 211 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp34_);
#line 212 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp35_ = self->priv->context;
#line 212 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp35_);
#line 214 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp36_ = self->priv->context;
#line 214 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp36_, "a a a !", &_inner_error_);
#line 214 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 214 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 214 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 214 "/home/ueno/devel/libkkc/tests/context.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 214 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 214 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1913 "context.c"
	}
#line 215 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp37_ = self->priv->context;
#line 215 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp38_ = kkc_context_get_input (_tmp37_);
#line 215 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp39_ = _tmp38_;
#line 215 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp40_ = _tmp39_;
#line 215 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp40_, "ちちち!") == 0, "context.input == \"\343\201\241\343\201\241\343\201\241!\"");
#line 215 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp40_);
#line 216 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp41_ = self->priv->context;
#line 216 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp41_);
#line 217 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp42_ = self->priv->context;
#line 217 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp42_);
#line 219 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp43_ = self->priv->context;
#line 219 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp43_, "3 3 3 3 3 Left 4 5", &_inner_error_);
#line 219 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 219 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 219 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 219 "/home/ueno/devel/libkkc/tests/context.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 219 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 219 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1951 "context.c"
	}
#line 220 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp44_ = self->priv->context;
#line 220 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp45_ = kkc_context_get_input (_tmp44_);
#line 220 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp46_ = _tmp45_;
#line 220 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp47_ = _tmp46_;
#line 220 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp47_, "ああああうえあ") == 0, "context.input == \"\343\201\202\343\201\202\343\201\202\343\201\202\343\201\206\343\201\210\343\201\202\"");
#line 220 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp47_);
#line 221 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp48_ = self->priv->context;
#line 221 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp49_ = kkc_context_get_input_cursor_pos (_tmp48_);
#line 221 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp50_ = _tmp49_;
#line 221 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp50_ == 6, "context.input_cursor_pos == 6");
#line 222 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp51_ = self->priv->context;
#line 222 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp51_);
#line 223 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp52_ = self->priv->context;
#line 223 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp52_);
#line 225 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp53_ = self->priv->context;
#line 225 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp53_, "3 3 3 3 3 Left Delete", &_inner_error_);
#line 225 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 225 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 225 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 225 "/home/ueno/devel/libkkc/tests/context.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 225 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 225 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 1997 "context.c"
	}
#line 226 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp54_ = self->priv->context;
#line 226 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp55_ = kkc_context_get_input (_tmp54_);
#line 226 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp56_ = _tmp55_;
#line 226 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp57_ = _tmp56_;
#line 226 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp57_, "ああああ") == 0, "context.input == \"\343\201\202\343\201\202\343\201\202\343\201\202\"");
#line 226 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp57_);
#line 227 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp58_ = self->priv->context;
#line 227 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp59_ = kkc_context_get_input_cursor_pos (_tmp58_);
#line 227 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp60_ = _tmp59_;
#line 227 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (_tmp60_ == (-1), "context.input_cursor_pos == -1");
#line 228 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp61_ = self->priv->context;
#line 228 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp61_);
#line 229 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp62_ = self->priv->context;
#line 229 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp62_);
#line 190 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp1_);
#line 190 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (metadata);
#line 2031 "context.c"
}


static void context_tests_test_nicola (ContextTests* self) {
	KkcRuleMetadata* metadata = NULL;
	KkcRuleMetadata* _tmp0_ = NULL;
	KkcRule* _tmp1_ = NULL;
	KkcRuleMetadata* _tmp2_ = NULL;
	KkcRule* _tmp3_ = NULL;
	KkcContext* _tmp4_ = NULL;
	KkcContext* _tmp5_ = NULL;
	GMainContext* _tmp6_ = NULL;
	KkcContext* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	KkcContext* _tmp11_ = NULL;
	KkcContext* _tmp12_ = NULL;
	KkcContext* _tmp13_ = NULL;
	KkcContext* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	KkcContext* _tmp18_ = NULL;
	KkcContext* _tmp19_ = NULL;
	KkcContext* _tmp20_ = NULL;
	GMainContext* _tmp21_ = NULL;
	KkcContext* _tmp22_ = NULL;
	KkcContext* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
	gchar* _tmp25_ = NULL;
	gchar* _tmp26_ = NULL;
	KkcContext* _tmp27_ = NULL;
	KkcContext* _tmp28_ = NULL;
	KkcContext* _tmp29_ = NULL;
	GMainContext* _tmp30_ = NULL;
	KkcContext* _tmp31_ = NULL;
	GMainContext* _tmp32_ = NULL;
	KkcContext* _tmp33_ = NULL;
	gchar* _tmp34_ = NULL;
	gchar* _tmp35_ = NULL;
	gchar* _tmp36_ = NULL;
	KkcContext* _tmp37_ = NULL;
	KkcContext* _tmp38_ = NULL;
	KkcContext* _tmp39_ = NULL;
	GMainContext* _tmp40_ = NULL;
	KkcContext* _tmp41_ = NULL;
	GMainContext* _tmp42_ = NULL;
	KkcContext* _tmp43_ = NULL;
	gchar* _tmp44_ = NULL;
	gchar* _tmp45_ = NULL;
	gchar* _tmp46_ = NULL;
	KkcContext* _tmp47_ = NULL;
	KkcContext* _tmp48_ = NULL;
	KkcContext* _tmp49_ = NULL;
	GMainContext* _tmp50_ = NULL;
	KkcContext* _tmp51_ = NULL;
	GMainContext* _tmp52_ = NULL;
	KkcContext* _tmp53_ = NULL;
	gchar* _tmp54_ = NULL;
	gchar* _tmp55_ = NULL;
	gchar* _tmp56_ = NULL;
	KkcContext* _tmp57_ = NULL;
	KkcContext* _tmp58_ = NULL;
	KkcContext* _tmp59_ = NULL;
	GMainContext* _tmp60_ = NULL;
	KkcContext* _tmp61_ = NULL;
	KkcContext* _tmp62_ = NULL;
	gchar* _tmp63_ = NULL;
	gchar* _tmp64_ = NULL;
	gchar* _tmp65_ = NULL;
	KkcContext* _tmp66_ = NULL;
	KkcContext* _tmp67_ = NULL;
	KkcContext* _tmp68_ = NULL;
	GMainContext* _tmp69_ = NULL;
	KkcContext* _tmp70_ = NULL;
	GMainContext* _tmp71_ = NULL;
	KkcContext* _tmp72_ = NULL;
	KkcContext* _tmp73_ = NULL;
	gchar* _tmp74_ = NULL;
	gchar* _tmp75_ = NULL;
	gchar* _tmp76_ = NULL;
	KkcContext* _tmp77_ = NULL;
	KkcContext* _tmp78_ = NULL;
	KkcContext* _tmp79_ = NULL;
	GMainContext* _tmp80_ = NULL;
	KkcContext* _tmp81_ = NULL;
	GMainContext* _tmp82_ = NULL;
	KkcContext* _tmp83_ = NULL;
	KkcContext* _tmp84_ = NULL;
	gchar* _tmp85_ = NULL;
	gchar* _tmp86_ = NULL;
	gchar* _tmp87_ = NULL;
	KkcContext* _tmp88_ = NULL;
	KkcContext* _tmp89_ = NULL;
	KkcContext* _tmp90_ = NULL;
	GMainContext* _tmp91_ = NULL;
	KkcContext* _tmp92_ = NULL;
	GMainContext* _tmp93_ = NULL;
	KkcContext* _tmp94_ = NULL;
	KkcContext* _tmp95_ = NULL;
	KkcContext* _tmp96_ = NULL;
	KkcContext* _tmp97_ = NULL;
	GMainContext* _tmp98_ = NULL;
	KkcContext* _tmp99_ = NULL;
	GMainContext* _tmp100_ = NULL;
	KkcContext* _tmp101_ = NULL;
	KkcContext* _tmp102_ = NULL;
	KkcContext* _tmp103_ = NULL;
	KkcContext* _tmp104_ = NULL;
	GMainContext* _tmp105_ = NULL;
	KkcContext* _tmp106_ = NULL;
	GMainContext* _tmp107_ = NULL;
	KkcContext* _tmp108_ = NULL;
	KkcContext* _tmp109_ = NULL;
	KkcContext* _tmp110_ = NULL;
	GError * _inner_error_ = NULL;
#line 232 "/home/ueno/devel/libkkc/tests/context.vala"
	g_return_if_fail (self != NULL);
#line 233 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = kkc_rule_metadata_find ("nicola");
#line 233 "/home/ueno/devel/libkkc/tests/context.vala"
	metadata = _tmp0_;
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = metadata;
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = kkc_rule_new (_tmp2_, &_inner_error_);
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = _tmp3_;
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 234 "/home/ueno/devel/libkkc/tests/context.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 234 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2171 "context.c"
	}
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp4_ = self->priv->context;
#line 234 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_set_typing_rule (_tmp4_, _tmp1_);
#line 237 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp5_ = self->priv->context;
#line 237 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp5_, "a", &_inner_error_);
#line 237 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 237 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 237 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 237 "/home/ueno/devel/libkkc/tests/context.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 237 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 237 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2193 "context.c"
	}
#line 238 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 200000);
#line 239 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp6_ = g_main_context_default ();
#line 239 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp6_, FALSE);
#line 240 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp7_ = self->priv->context;
#line 240 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp8_ = kkc_context_get_input (_tmp7_);
#line 240 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp9_ = _tmp8_;
#line 240 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp10_ = _tmp9_;
#line 240 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp10_, "う") == 0, "context.input == \"\343\201\206\"");
#line 240 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp10_);
#line 241 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp11_ = self->priv->context;
#line 241 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp11_);
#line 242 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp12_ = self->priv->context;
#line 242 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp12_);
#line 245 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp13_ = self->priv->context;
#line 245 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp13_, "a (release a)", &_inner_error_);
#line 245 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 245 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 245 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 245 "/home/ueno/devel/libkkc/tests/context.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 245 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 245 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2237 "context.c"
	}
#line 246 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp14_ = self->priv->context;
#line 246 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp15_ = kkc_context_get_input (_tmp14_);
#line 246 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp16_ = _tmp15_;
#line 246 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp17_ = _tmp16_;
#line 246 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp17_, "う") == 0, "context.input == \"\343\201\206\"");
#line 246 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp17_);
#line 247 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp18_ = self->priv->context;
#line 247 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp18_);
#line 248 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp19_ = self->priv->context;
#line 248 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp19_);
#line 251 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp20_ = self->priv->context;
#line 251 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp20_, "a", &_inner_error_);
#line 251 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 251 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 251 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 251 "/home/ueno/devel/libkkc/tests/context.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 251 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 251 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2275 "context.c"
	}
#line 252 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 50000);
#line 253 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp21_ = g_main_context_default ();
#line 253 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp21_, FALSE);
#line 254 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp22_ = self->priv->context;
#line 254 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp22_, "b", &_inner_error_);
#line 254 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 254 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 254 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 254 "/home/ueno/devel/libkkc/tests/context.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 254 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 254 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2299 "context.c"
	}
#line 255 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp23_ = self->priv->context;
#line 255 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp24_ = kkc_context_get_input (_tmp23_);
#line 255 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp25_ = _tmp24_;
#line 255 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp26_ = _tmp25_;
#line 255 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp26_, "う") == 0, "context.input == \"\343\201\206\"");
#line 255 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp26_);
#line 256 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp27_ = self->priv->context;
#line 256 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp27_);
#line 257 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp28_ = self->priv->context;
#line 257 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp28_);
#line 259 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp29_ = self->priv->context;
#line 259 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp29_, "a", &_inner_error_);
#line 259 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 259 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 259 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 259 "/home/ueno/devel/libkkc/tests/context.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 259 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 259 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2337 "context.c"
	}
#line 260 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 50000);
#line 261 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp30_ = g_main_context_default ();
#line 261 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp30_, FALSE);
#line 262 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp31_ = self->priv->context;
#line 262 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp31_, "b", &_inner_error_);
#line 262 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 262 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 262 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 262 "/home/ueno/devel/libkkc/tests/context.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 262 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 262 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2361 "context.c"
	}
#line 263 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 200000);
#line 264 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp32_ = g_main_context_default ();
#line 264 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp32_, FALSE);
#line 265 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp33_ = self->priv->context;
#line 265 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp34_ = kkc_context_get_input (_tmp33_);
#line 265 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp35_ = _tmp34_;
#line 265 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp36_ = _tmp35_;
#line 265 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp36_, "うへ") == 0, "context.input == \"\343\201\206\343\201\270\"");
#line 265 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp36_);
#line 266 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp37_ = self->priv->context;
#line 266 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp37_);
#line 267 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp38_ = self->priv->context;
#line 267 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp38_);
#line 270 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp39_ = self->priv->context;
#line 270 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp39_, "a", &_inner_error_);
#line 270 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 270 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 270 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 270 "/home/ueno/devel/libkkc/tests/context.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 270 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 270 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2405 "context.c"
	}
#line 271 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 272 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp40_ = g_main_context_default ();
#line 272 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp40_, FALSE);
#line 273 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp41_ = self->priv->context;
#line 273 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp41_, "Muhenkan", &_inner_error_);
#line 273 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 273 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 273 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 273 "/home/ueno/devel/libkkc/tests/context.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 273 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 273 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2429 "context.c"
	}
#line 274 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 200000);
#line 275 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp42_ = g_main_context_default ();
#line 275 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp42_, FALSE);
#line 276 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp43_ = self->priv->context;
#line 276 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp44_ = kkc_context_get_input (_tmp43_);
#line 276 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp45_ = _tmp44_;
#line 276 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp46_ = _tmp45_;
#line 276 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp46_, "を") == 0, "context.input == \"\343\202\222\"");
#line 276 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp46_);
#line 277 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp47_ = self->priv->context;
#line 277 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp47_);
#line 278 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp48_ = self->priv->context;
#line 278 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp48_);
#line 281 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp49_ = self->priv->context;
#line 281 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp49_, "Muhenkan", &_inner_error_);
#line 281 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 281 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 281 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 281 "/home/ueno/devel/libkkc/tests/context.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 281 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 281 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2473 "context.c"
	}
#line 282 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 283 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp50_ = g_main_context_default ();
#line 283 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp50_, FALSE);
#line 284 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp51_ = self->priv->context;
#line 284 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp51_, "a", &_inner_error_);
#line 284 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 284 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 284 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 284 "/home/ueno/devel/libkkc/tests/context.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 284 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 284 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2497 "context.c"
	}
#line 285 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 200000);
#line 286 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp52_ = g_main_context_default ();
#line 286 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp52_, FALSE);
#line 287 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp53_ = self->priv->context;
#line 287 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp54_ = kkc_context_get_input (_tmp53_);
#line 287 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp55_ = _tmp54_;
#line 287 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp56_ = _tmp55_;
#line 287 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp56_, "を") == 0, "context.input == \"\343\202\222\"");
#line 287 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp56_);
#line 288 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp57_ = self->priv->context;
#line 288 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp57_);
#line 289 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp58_ = self->priv->context;
#line 289 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp58_);
#line 292 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp59_ = self->priv->context;
#line 292 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp59_, "a", &_inner_error_);
#line 292 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 292 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 292 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 292 "/home/ueno/devel/libkkc/tests/context.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 292 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 292 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2541 "context.c"
	}
#line 293 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 60000);
#line 294 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp60_ = g_main_context_default ();
#line 294 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp60_, FALSE);
#line 295 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp61_ = self->priv->context;
#line 295 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp61_, "Muhenkan", &_inner_error_);
#line 295 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 295 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 295 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 295 "/home/ueno/devel/libkkc/tests/context.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 295 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 295 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2565 "context.c"
	}
#line 296 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp62_ = self->priv->context;
#line 296 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp63_ = kkc_context_get_input (_tmp62_);
#line 296 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp64_ = _tmp63_;
#line 296 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp65_ = _tmp64_;
#line 296 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp65_, "う") == 0, "context.input == \"\343\201\206\"");
#line 296 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp65_);
#line 297 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp66_ = self->priv->context;
#line 297 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp66_);
#line 298 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp67_ = self->priv->context;
#line 298 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp67_);
#line 301 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp68_ = self->priv->context;
#line 301 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp68_, "a", &_inner_error_);
#line 301 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 301 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 301 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 301 "/home/ueno/devel/libkkc/tests/context.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 301 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 301 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2603 "context.c"
	}
#line 302 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 303 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp69_ = g_main_context_default ();
#line 303 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp69_, FALSE);
#line 304 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp70_ = self->priv->context;
#line 304 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp70_, "Muhenkan", &_inner_error_);
#line 304 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 304 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 304 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 304 "/home/ueno/devel/libkkc/tests/context.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 304 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 304 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2627 "context.c"
	}
#line 305 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 20000);
#line 306 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp71_ = g_main_context_default ();
#line 306 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp71_, FALSE);
#line 307 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp72_ = self->priv->context;
#line 307 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp72_, "b", &_inner_error_);
#line 307 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 307 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 307 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 307 "/home/ueno/devel/libkkc/tests/context.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 307 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 307 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2651 "context.c"
	}
#line 308 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp73_ = self->priv->context;
#line 308 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp74_ = kkc_context_get_input (_tmp73_);
#line 308 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp75_ = _tmp74_;
#line 308 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp76_ = _tmp75_;
#line 308 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp76_, "を") == 0, "context.input == \"\343\202\222\"");
#line 308 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp76_);
#line 309 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp77_ = self->priv->context;
#line 309 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp77_);
#line 310 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp78_ = self->priv->context;
#line 310 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp78_);
#line 312 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp79_ = self->priv->context;
#line 312 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp79_, "a", &_inner_error_);
#line 312 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 312 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 312 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 312 "/home/ueno/devel/libkkc/tests/context.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 312 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 312 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2689 "context.c"
	}
#line 313 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 20000);
#line 314 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp80_ = g_main_context_default ();
#line 314 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp80_, FALSE);
#line 315 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp81_ = self->priv->context;
#line 315 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp81_, "Muhenkan", &_inner_error_);
#line 315 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 315 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 315 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 315 "/home/ueno/devel/libkkc/tests/context.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 315 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 315 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2713 "context.c"
	}
#line 316 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 317 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp82_ = g_main_context_default ();
#line 317 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp82_, FALSE);
#line 318 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp83_ = self->priv->context;
#line 318 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp83_, "b", &_inner_error_);
#line 318 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 318 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 318 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 318 "/home/ueno/devel/libkkc/tests/context.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 318 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 318 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2737 "context.c"
	}
#line 319 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp84_ = self->priv->context;
#line 319 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp85_ = kkc_context_get_input (_tmp84_);
#line 319 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp86_ = _tmp85_;
#line 319 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp87_ = _tmp86_;
#line 319 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (g_strcmp0 (_tmp87_, "うぃ") == 0, "context.input == \"\343\201\206\343\201\203\"");
#line 319 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp87_);
#line 320 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp88_ = self->priv->context;
#line 320 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp88_);
#line 321 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp89_ = self->priv->context;
#line 321 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp89_);
#line 323 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp90_ = self->priv->context;
#line 323 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp90_, "a", &_inner_error_);
#line 323 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 323 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 323 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 323 "/home/ueno/devel/libkkc/tests/context.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 323 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 323 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2775 "context.c"
	}
#line 324 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 325 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp91_ = g_main_context_default ();
#line 325 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp91_, FALSE);
#line 326 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp92_ = self->priv->context;
#line 326 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp92_, "Henkan", &_inner_error_);
#line 326 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 326 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 326 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 326 "/home/ueno/devel/libkkc/tests/context.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 326 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 326 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2799 "context.c"
	}
#line 327 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 20000);
#line 328 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp93_ = g_main_context_default ();
#line 328 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp93_, FALSE);
#line 329 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp94_ = self->priv->context;
#line 329 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp94_, "b", &_inner_error_);
#line 329 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 329 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 329 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 329 "/home/ueno/devel/libkkc/tests/context.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 329 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 329 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2823 "context.c"
	}
#line 330 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp95_ = self->priv->context;
#line 330 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp95_);
#line 331 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp96_ = self->priv->context;
#line 331 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp96_);
#line 333 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp97_ = self->priv->context;
#line 333 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp97_, "a", &_inner_error_);
#line 333 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 333 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 333 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 333 "/home/ueno/devel/libkkc/tests/context.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 333 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 333 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2849 "context.c"
	}
#line 334 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 335 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp98_ = g_main_context_default ();
#line 335 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp98_, FALSE);
#line 336 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp99_ = self->priv->context;
#line 336 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp99_, "Henkan", &_inner_error_);
#line 336 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 336 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 336 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 336 "/home/ueno/devel/libkkc/tests/context.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 336 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 336 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2873 "context.c"
	}
#line 337 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 20000);
#line 338 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp100_ = g_main_context_default ();
#line 338 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp100_, FALSE);
#line 339 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp101_ = self->priv->context;
#line 339 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp101_, "C-b", &_inner_error_);
#line 339 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 339 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 339 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 339 "/home/ueno/devel/libkkc/tests/context.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 339 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 339 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2897 "context.c"
	}
#line 340 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp102_ = self->priv->context;
#line 340 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp102_);
#line 341 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp103_ = self->priv->context;
#line 341 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp103_);
#line 343 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp104_ = self->priv->context;
#line 343 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp104_, "a", &_inner_error_);
#line 343 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 343 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 343 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 343 "/home/ueno/devel/libkkc/tests/context.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 343 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 343 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2923 "context.c"
	}
#line 344 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 10000);
#line 345 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp105_ = g_main_context_default ();
#line 345 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp105_, FALSE);
#line 346 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp106_ = self->priv->context;
#line 346 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp106_, "Henkan", &_inner_error_);
#line 346 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 346 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 346 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 346 "/home/ueno/devel/libkkc/tests/context.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 346 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 346 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2947 "context.c"
	}
#line 347 "/home/ueno/devel/libkkc/tests/context.vala"
	g_usleep ((gulong) 20000);
#line 348 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp107_ = g_main_context_default ();
#line 348 "/home/ueno/devel/libkkc/tests/context.vala"
	g_main_context_iteration (_tmp107_, FALSE);
#line 349 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp108_ = self->priv->context;
#line 349 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_process_key_events (_tmp108_, "(control release b)", &_inner_error_);
#line 349 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 349 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (_tmp1_);
#line 349 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (metadata);
#line 349 "/home/ueno/devel/libkkc/tests/context.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 349 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 349 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 2971 "context.c"
	}
#line 350 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp109_ = self->priv->context;
#line 350 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_clear_output (_tmp109_);
#line 351 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp110_ = self->priv->context;
#line 351 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_context_reset (_tmp110_);
#line 232 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp1_);
#line 232 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (metadata);
#line 2985 "context.c"
}


static void context_tests_test_sentence_conversion (ContextTests* self) {
	gchar* srcdir = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	KkcContext* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 354 "/home/ueno/devel/libkkc/tests/context.vala"
	g_return_if_fail (self != NULL);
#line 355 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = g_getenv ("srcdir");
#line 355 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 355 "/home/ueno/devel/libkkc/tests/context.vala"
	srcdir = _tmp1_;
#line 356 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (srcdir != NULL, "srcdir != null");
#line 357 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = self->priv->context;
#line 357 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = g_build_filename (srcdir, "conversions-sentence.json", NULL);
#line 357 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp4_ = _tmp3_;
#line 357 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_utils_do_conversions (_tmp2_, _tmp4_);
#line 357 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp4_);
#line 354 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (srcdir);
#line 3018 "context.c"
}


static void context_tests_test_segment_conversion (ContextTests* self) {
	gchar* srcdir = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	KkcContext* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 363 "/home/ueno/devel/libkkc/tests/context.vala"
	g_return_if_fail (self != NULL);
#line 364 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = g_getenv ("srcdir");
#line 364 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 364 "/home/ueno/devel/libkkc/tests/context.vala"
	srcdir = _tmp1_;
#line 365 "/home/ueno/devel/libkkc/tests/context.vala"
	_vala_assert (srcdir != NULL, "srcdir != null");
#line 366 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = self->priv->context;
#line 366 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = g_build_filename (srcdir, "conversions-segment.json", NULL);
#line 366 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp4_ = _tmp3_;
#line 366 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_test_utils_do_conversions (_tmp2_, _tmp4_);
#line 366 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (_tmp4_);
#line 363 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_free0 (srcdir);
#line 3051 "context.c"
}


static void context_tests_real_set_up (KkcTestCase* base) {
	ContextTests * self;
	KkcContext* _tmp20_ = NULL;
	KkcDictionaryList* _tmp21_ = NULL;
	KkcDictionaryList* _tmp22_ = NULL;
	KkcEmptySegmentDictionary* _tmp23_ = NULL;
	KkcEmptySegmentDictionary* _tmp24_ = NULL;
	GError * _inner_error_ = NULL;
#line 372 "/home/ueno/devel/libkkc/tests/context.vala"
	self = (ContextTests*) base;
#line 3065 "context.c"
	{
		KkcLanguageModel* model = NULL;
		KkcLanguageModel* _tmp0_ = NULL;
		KkcContext* _tmp1_ = NULL;
#line 374 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp0_ = kkc_language_model_load ("sorted3", &_inner_error_);
#line 374 "/home/ueno/devel/libkkc/tests/context.vala"
		model = _tmp0_;
#line 374 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 374 "/home/ueno/devel/libkkc/tests/context.vala"
			if (_inner_error_->domain == KKC_LANGUAGE_MODEL_ERROR) {
#line 3078 "context.c"
				goto __catch13_kkc_language_model_error;
			}
			goto __finally13;
		}
#line 375 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp1_ = kkc_context_new (model);
#line 375 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (self->priv->context);
#line 375 "/home/ueno/devel/libkkc/tests/context.vala"
		self->priv->context = _tmp1_;
#line 373 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (model);
#line 3091 "context.c"
	}
	goto __finally13;
	__catch13_kkc_language_model_error:
	{
		GError* e = NULL;
		FILE* _tmp2_ = NULL;
		GError* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 373 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 373 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 377 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp2_ = stderr;
#line 377 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp3_ = e;
#line 377 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp4_ = _tmp3_->message;
#line 377 "/home/ueno/devel/libkkc/tests/context.vala"
		fprintf (_tmp2_, "%s\n", _tmp4_);
#line 373 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 3114 "context.c"
	}
	__finally13:
#line 373 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 373 "/home/ueno/devel/libkkc/tests/context.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 373 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 373 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 3125 "context.c"
	}
	{
		gchar* srcdir = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		KkcSystemSegmentDictionary* dictionary = NULL;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		KkcSystemSegmentDictionary* _tmp11_ = NULL;
		KkcSystemSegmentDictionary* _tmp12_ = NULL;
		KkcContext* _tmp13_ = NULL;
		KkcDictionaryList* _tmp14_ = NULL;
		KkcDictionaryList* _tmp15_ = NULL;
		KkcSystemSegmentDictionary* _tmp16_ = NULL;
#line 381 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp5_ = g_getenv ("srcdir");
#line 381 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 381 "/home/ueno/devel/libkkc/tests/context.vala"
		srcdir = _tmp6_;
#line 382 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp7_ = srcdir;
#line 382 "/home/ueno/devel/libkkc/tests/context.vala"
		_vala_assert (_tmp7_ != NULL, "srcdir != null");
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp8_ = srcdir;
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp9_ = g_build_filename (_tmp8_, "system-segment-dictionary", NULL);
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp10_ = _tmp9_;
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp11_ = kkc_system_segment_dictionary_new (_tmp10_, "EUC-JP", &_inner_error_);
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp12_ = _tmp11_;
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (_tmp10_);
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		dictionary = _tmp12_;
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 383 "/home/ueno/devel/libkkc/tests/context.vala"
			_g_free0 (srcdir);
#line 3170 "context.c"
			goto __catch14_g_error;
		}
#line 385 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp13_ = self->priv->context;
#line 385 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp14_ = kkc_context_get_dictionaries (_tmp13_);
#line 385 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp15_ = _tmp14_;
#line 385 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp16_ = dictionary;
#line 385 "/home/ueno/devel/libkkc/tests/context.vala"
		kkc_dictionary_list_add (_tmp15_, (KkcDictionary*) _tmp16_);
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_object_unref0 (dictionary);
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_free0 (srcdir);
#line 3187 "context.c"
	}
	goto __finally14;
	__catch14_g_error:
	{
		GError* e = NULL;
		FILE* _tmp17_ = NULL;
		GError* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
		e = _inner_error_;
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
		_inner_error_ = NULL;
#line 387 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp17_ = stderr;
#line 387 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp18_ = e;
#line 387 "/home/ueno/devel/libkkc/tests/context.vala"
		_tmp19_ = _tmp18_->message;
#line 387 "/home/ueno/devel/libkkc/tests/context.vala"
		fprintf (_tmp17_, "%s\n", _tmp19_);
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
		_g_error_free0 (e);
#line 3210 "context.c"
	}
	__finally14:
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 380 "/home/ueno/devel/libkkc/tests/context.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 380 "/home/ueno/devel/libkkc/tests/context.vala"
		g_clear_error (&_inner_error_);
#line 380 "/home/ueno/devel/libkkc/tests/context.vala"
		return;
#line 3221 "context.c"
	}
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp20_ = self->priv->context;
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp21_ = kkc_context_get_dictionaries (_tmp20_);
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp22_ = _tmp21_;
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp23_ = kkc_empty_segment_dictionary_new ();
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp24_ = _tmp23_;
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_dictionary_list_add (_tmp22_, (KkcDictionary*) _tmp24_);
#line 390 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp24_);
#line 3237 "context.c"
}


static void context_tests_real_tear_down (KkcTestCase* base) {
	ContextTests * self;
#line 393 "/home/ueno/devel/libkkc/tests/context.vala"
	self = (ContextTests*) base;
#line 394 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (self->priv->context);
#line 394 "/home/ueno/devel/libkkc/tests/context.vala"
	self->priv->context = NULL;
#line 3249 "context.c"
}


static void context_tests_class_init (ContextTestsClass * klass) {
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	context_tests_parent_class = g_type_class_peek_parent (klass);
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	g_type_class_add_private (klass, sizeof (ContextTestsPrivate));
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	((KkcTestCaseClass *) klass)->set_up = context_tests_real_set_up;
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	((KkcTestCaseClass *) klass)->tear_down = context_tests_real_tear_down;
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	G_OBJECT_CLASS (klass)->finalize = context_tests_finalize;
#line 3264 "context.c"
}


static void context_tests_instance_init (ContextTests * self) {
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	self->priv = CONTEXT_TESTS_GET_PRIVATE (self);
#line 3271 "context.c"
}


static void context_tests_finalize (GObject* obj) {
	ContextTests * self;
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONTEXT_TESTS, ContextTests);
#line 2 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (self->priv->context);
#line 1 "/home/ueno/devel/libkkc/tests/context.vala"
	G_OBJECT_CLASS (context_tests_parent_class)->finalize (obj);
#line 3283 "context.c"
}


GType context_tests_get_type (void) {
	static volatile gsize context_tests_type_id__volatile = 0;
	if (g_once_init_enter (&context_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ContextTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) context_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContextTests), 0, (GInstanceInitFunc) context_tests_instance_init, NULL };
		GType context_tests_type_id;
		context_tests_type_id = g_type_register_static (KKC_TYPE_TEST_CASE, "ContextTests", &g_define_type_info, 0);
		g_once_init_leave (&context_tests_type_id__volatile, context_tests_type_id);
	}
	return context_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	ContextTests* _tmp1_ = NULL;
	ContextTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 399 "/home/ueno/devel/libkkc/tests/context.vala"
	setlocale (LC_ALL, "");
#line 401 "/home/ueno/devel/libkkc/tests/context.vala"
	g_test_init (&args_length1, &args, NULL);
#line 402 "/home/ueno/devel/libkkc/tests/context.vala"
	kkc_init ();
#line 404 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp0_ = g_test_get_root ();
#line 404 "/home/ueno/devel/libkkc/tests/context.vala"
	root = _tmp0_;
#line 405 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp1_ = context_tests_new ();
#line 405 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp2_ = _tmp1_;
#line 405 "/home/ueno/devel/libkkc/tests/context.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 405 "/home/ueno/devel/libkkc/tests/context.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 405 "/home/ueno/devel/libkkc/tests/context.vala"
	_g_object_unref0 (_tmp2_);
#line 407 "/home/ueno/devel/libkkc/tests/context.vala"
	g_test_run ();
#line 409 "/home/ueno/devel/libkkc/tests/context.vala"
	result = 0;
#line 409 "/home/ueno/devel/libkkc/tests/context.vala"
	return result;
#line 3332 "context.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 398 "/home/ueno/devel/libkkc/tests/context.vala"
	return _vala_main (argv, argc);
#line 3342 "context.c"
}



