#include #include #include #include #include #include #include #include #include #include "proftest.h" void message_send(void **state) { prof_connect(); prof_input("/msg somejid@someserver.com Hi there"); assert_true(stbbr_received( "" "Hi there" "" )); assert_true(prof_output_glob("me: *Hi there")); } void message_receive_console(void **state) { prof_connect(); stbbr_send( "" "How are you?" "" ); assert_true(prof_output_exact("<< chat message: someuser@chatserv.org/laptop (win 2)")); } void message_receive_chatwin(void **state) { prof_connect(); prof_input("/msg someuser@chatserv.org"); assert_true(prof_output_exact("someuser@chatserv.org")); stbbr_send( "" "How are you?" "" ); assert_true(prof_output_regex("someuser@chatserv.org/laptop: .+How are you?")); }