about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-13 20:53:51 +0100
committerJames Booth <boothj5@gmail.com>2015-06-13 20:53:51 +0100
commit0fcfa65f153b585655635ec1296829d8ea62f21c (patch)
treed1ba86a14da3d8110887ea444660c7e1e1c2846f
parent0c3fe51799c46542b9f317d1b7cbc289125bc7b9 (diff)
downloadprofani-tty-0fcfa65f153b585655635ec1296829d8ea62f21c.tar.gz
Use regex for multiline assert in rooms functional test
-rw-r--r--tests/functionaltests/test_rooms.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/functionaltests/test_rooms.c b/tests/functionaltests/test_rooms.c
index c81ded6b..0e53d0db 100644
--- a/tests/functionaltests/test_rooms.c
+++ b/tests/functionaltests/test_rooms.c
@@ -27,8 +27,11 @@ rooms_query(void **state)
 
     prof_input("/rooms");
 
-    assert_true(prof_output_exact("chatroom@conference.localhost, (A chat room)"));
-    assert_true(prof_output_exact("hangout@conference.localhost, (Another chat room)"));
+    assert_true(prof_output_regex(
+        "chatroom@conference.localhost, \\(A chat room\\)"
+        ".+"
+        "hangout@conference.localhost, \\(Another chat room\\)"
+    ));
 
     assert_true(stbbr_last_received(
         "<iq id=\"confreq\" to=\"conference.localhost\" type=\"get\">"