mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 04:36:22 +00:00
Use regex for multiline assert in rooms functional test
This commit is contained in:
@@ -27,8 +27,11 @@ rooms_query(void **state)
|
|||||||
|
|
||||||
prof_input("/rooms");
|
prof_input("/rooms");
|
||||||
|
|
||||||
assert_true(prof_output_exact("chatroom@conference.localhost, (A chat room)"));
|
assert_true(prof_output_regex(
|
||||||
assert_true(prof_output_exact("hangout@conference.localhost, (Another chat room)"));
|
"chatroom@conference.localhost, \\(A chat room\\)"
|
||||||
|
".+"
|
||||||
|
"hangout@conference.localhost, \\(Another chat room\\)"
|
||||||
|
));
|
||||||
|
|
||||||
assert_true(stbbr_last_received(
|
assert_true(stbbr_last_received(
|
||||||
"<iq id=\"confreq\" to=\"conference.localhost\" type=\"get\">"
|
"<iq id=\"confreq\" to=\"conference.localhost\" type=\"get\">"
|
||||||
|
|||||||
Reference in New Issue
Block a user