[Telepathy-commits] [telepathy-glib/master] Amend message mixin regression test to test its Text interface correctly

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Dec 18 10:41:27 PST 2008


20080414174114-53eee-afdfb313137c8d8ec0cb999a564d1f0c3df13f4d.gz
---
 tests/dbus/message-mixin.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/dbus/message-mixin.c b/tests/dbus/message-mixin.c
index a441868..ebd07f9 100644
--- a/tests/dbus/message-mixin.c
+++ b/tests/dbus/message-mixin.c
@@ -163,14 +163,14 @@ main (int argc,
   MYASSERT (last_sent_type == TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
       ": %u != NORMAL", last_sent_type);
   MYASSERT (!tp_strdiff (last_sent_text, "Hello, world!"),
-      "'%s' != '%s'", last_sent_text, "Hello, world!");
+      ": '%s' != '%s'", last_sent_text, "Hello, world!");
   MYASSERT (last_received_type == TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
       ": %u != NORMAL", last_received_type);
   MYASSERT (last_received_flags == 0, ": %u != 0", last_received_flags);
   MYASSERT (last_received_sender == handle,
       ": %u != %u", last_received_sender, handle);
-  MYASSERT (!tp_strdiff (last_received_text, "You said: Hello, world!"),
-      "'%s'", last_received_text);
+  MYASSERT (!tp_strdiff (last_received_text, "Hello, world!"),
+      ": '%s'", last_received_text);
 
   sent_count = 0;
   received_count = 0;
@@ -190,7 +190,7 @@ main (int argc,
   MYASSERT (last_received_sender == handle,
       ": %u != %u", last_received_sender, handle);
   MYASSERT (!tp_strdiff (last_received_text,
-        "notices that the user drinks coffee"),
+        "drinks coffee"),
       ": '%s'", last_received_text);
 
   sent_count = 0;
@@ -211,7 +211,7 @@ main (int argc,
   MYASSERT (last_received_sender == handle,
       ": %u != %u", last_received_sender, handle);
   MYASSERT (!tp_strdiff (last_received_text,
-        "You sent a notice: Printer on fire"),
+        "Printer on fire"),
       ": '%s'", last_received_text);
 
   g_print ("\n\n==== Listing messages ====\n");
-- 
1.5.6.5




More information about the Telepathy-commits mailing list