about summary refs log tree commit diff stats
path: root/archive/0.vm.arc/graphics.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-01 17:05:57 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-01 17:05:57 -0800
commitcace386e1f2b3f49fd14ac8f34231e932e2a3d19 (patch)
treebf741667f3fd56201cf8013e615f15979060d118 /archive/0.vm.arc/graphics.mu
parentcc227e67d78de33cc045d64f96a076ea1cb528fa (diff)
downloadmu-cace386e1f2b3f49fd14ac8f34231e932e2a3d19.tar.gz
5854
Diffstat (limited to 'archive/0.vm.arc/graphics.mu')
0 files changed, 0 insertions, 0 deletions
2018-01-27 23:51:03 +0000 Fix tests, move glob creation' href='/danisanti/profani-tty/commit/tests/functionaltests/test_rooms.c?id=e571ccd8ea5a60b25a4b8c52d0ae62bec95e027c'>e571ccd8 ^
f17afcf5 ^
e571ccd8 ^

0c3fe517 ^
f17afcf5 ^
e571ccd8 ^
7f98e013 ^
f17afcf5 ^

f17afcf5 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38















                         

                                                                                                             


                                                                                     



                      
                   
 
                                                      
 

                                                                                       
 
                                    
                                                                       
                                                                     

               
 
#include <glib.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <string.h>

#include <stabber.h>
#include <expect.h>

#include "proftest.h"

void
rooms_query(void **state)
{
    stbbr_for_id("prof_confreq_4",
        "<iq id='prof_confreq_4' type='result' to='stabber@localhost/profanity' from='conference.localhost'>"
            "<query xmlns='http://jabber.org/protocol/disco#items'>"
                "<item jid='chatroom@conference.localhost' name='A chat room'/>"
                "<item jid='hangout@conference.localhost' name='Another chat room'/>"
            "</query>"
        "</iq>"
    );

    prof_connect();

    prof_input("/rooms service conference.localhost");

    assert_true(prof_output_exact("chatroom@conference.localhost (A chat room)"));
    assert_true(prof_output_exact("hangout@conference.localhost (Another chat room)"));

    assert_true(stbbr_last_received(
        "<iq id='prof_confreq_4' to='conference.localhost' type='get'>"
            "<query xmlns='http://jabber.org/protocol/disco#items'/>"
        "</iq>"
    ));
}