[geocode-glib] test: Add test for unlimited results in paris test case
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] test: Add test for unlimited results in paris test case
- Date: Mon, 26 Nov 2012 13:45:05 +0000 (UTC)
commit 4166caeeb0b8a10f4276d063dd707315d9415ee8
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 26 14:43:59 2012 +0100
test: Add test for unlimited results in paris test case
geocode-glib/test-gcglib.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index c5f392b..83f3288 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -198,6 +198,7 @@ test_search (void)
gboolean got_france, got_texas;
forward = geocode_forward_new_for_string ("paris");
+ geocode_forward_set_answer_count (forward, 0);
results = geocode_forward_search (forward, &error);
if (results == NULL) {
g_warning ("Failed at geocoding: %s", error->message);
@@ -207,6 +208,8 @@ test_search (void)
g_object_unref (forward);
+ g_assert_cmpint (g_list_length (results), ==, 38);
+
/* We need to find Paris in France and in Texas */
got_france = FALSE;
got_texas = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]