1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Use regex for multiline assert in rooms functional test

This commit is contained in:
James Booth 2015-06-13 20:53:51 +01:00
parent 0c3fe51799
commit 0fcfa65f15

View File

@ -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\">"