]> git.0d.be Git - empathy.git/blobdiff - tests/empathy-live-search-test.c
Fix broken nl translation
[empathy.git] / tests / empathy-live-search-test.c
index 377470e60d78034e185b1faea2f674756ea9dbae..2fb3e48db68adddcb4ca816456f0e21bd42d637c 100644 (file)
@@ -1,13 +1,14 @@
+#include "config.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <tp-account-widgets/tpaw-live-search.h>
 
 #include "test-helper.h"
 
 #define DEBUG_FLAG EMPATHY_DEBUG_TESTS
-#include <libempathy/empathy-debug.h>
-
-#include <libempathy-gtk/empathy-live-search.h>
+#include "empathy-debug.h"
 
 typedef struct
 {
@@ -49,7 +50,6 @@ test_live_search (void)
       { NULL, NULL, FALSE }
     };
   guint i;
-  gboolean failed = FALSE;
 
   DEBUG ("Started");
   for (i = 0; tests[i].string != NULL; i ++)
@@ -57,16 +57,15 @@ test_live_search (void)
       gboolean match;
       gboolean ok;
 
-      match = empathy_live_search_match_string (tests[i].string, tests[i].prefix);
+      match = tpaw_live_search_match_string (tests[i].string, tests[i].prefix);
       ok = (match == tests[i].should_match);
 
-      DEBUG ("'%s' - '%s': %s", tests[i].string, tests[i].prefix, ok ? "OK" : "FAILED");
+      DEBUG ("'%s' - '%s' %s: %s", tests[i].string, tests[i].prefix,
+          tests[i].should_match ? "should match" : "should NOT match",
+          ok ? "OK" : "FAILED");
 
-      if (!ok)
-        failed = TRUE;
+      g_assert (ok);
     }
-
-  g_assert (!failed);
 }
 
 int