[geocode-glib/wip/hadess/fix-bounded: 10/10] tests: Exercise geocode_forward_set_bounded() helper




commit 63225281b735c5748e570f0f784a93dc4e4fda39
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 30 12:16:09 2022 +0200

    tests: Exercise geocode_forward_set_bounded() helper
    
    geocode_forward_set_bounded() is backend-agnostic, so prefer using it
    rather than passing "bounded" as a free-form parameter.

 geocode-glib/tests/geocode-glib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/geocode-glib/tests/geocode-glib.c b/geocode-glib/tests/geocode-glib.c
index e7d6d84..b86fb0a 100644
--- a/geocode-glib/tests/geocode-glib.c
+++ b/geocode-glib/tests/geocode-glib.c
@@ -419,10 +419,11 @@ test_pub (void)
        params = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);
        add_attr_string (params, "q", "9, old palace road, guildford, surrey");
        add_attr_string (params, "limit", "1");
-       add_attr_string (params, "bounded", "0");
+       add_attr_string (params, "bounded", "1");
 
        object = create_forward_for_string ("9, old palace road, guildford, surrey",
                                            params, "pub.json");
+       geocode_forward_set_bounded (object, TRUE);
 
        geocode_forward_set_answer_count (object, 1);
        res = geocode_forward_search (object, &error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]