about summary refs log tree commit diff stats
path: root/061text.mu
Commit message (Expand)AuthorAgeFilesLines
* 4262 - literal 'null'Kartik Agaram2018-06-171-6/+6
* 4261 - start using literals for 'true' and 'false'Kartik Agaram2018-06-171-10/+10
* 4260 - make address coercions explicitKartik Agaram2018-06-161-1/+1
* 4134 - 'input' = 'ingredient'Kartik K. Agaram2017-12-031-31/+31
* 4121Kartik K. Agaram2017-11-151-0/+8
* 4098Kartik K. Agaram2017-10-301-3/+3
* 4004Kartik K. Agaram2017-09-231-1/+1
* 4002Kartik K. Agaram2017-09-231-28/+13
* 3901Kartik K. Agaram2017-06-091-10/+1
* 3833Kartik K. Agaram2017-04-181-0/+6
* 3832Kartik K. Agaram2017-04-181-8/+27
* 3828 - make buffers shape-shifting (generic)Kartik K. Agaram2017-04-181-17/+16
* 3787Kartik K. Agaram2017-03-121-6/+6
* 3699Kartik K. Agaram2016-11-281-1/+1
* 3688Kartik K. Agaram2016-11-251-0/+1
* 3683Kartik K. Agaram2016-11-231-0/+26
* 3674Kartik K. Agaram2016-11-131-1/+1
* 3672Kartik K. Agaram2016-11-131-3/+3
* 3670 - parsing whole numbers from textKartik K. Agaram2016-11-111-0/+83
* 3552Kartik K. Agaram2016-10-221-1/+1
* 3429 - standardize Mu scenariosKartik K. Agaram2016-09-281-158/+182
* 3390Kartik K. Agaram2016-09-171-41/+41
* 3389Kartik K. Agaram2016-09-171-17/+17
* 3386Kartik K. Agaram2016-09-171-56/+56
* 3385Kartik K. Agaram2016-09-171-72/+72
* 3379Kartik K. Agaram2016-09-171-67/+67
* 3368Kartik K. Agaram2016-09-151-13/+0
* 3365 - create strings out of arbitrary typesKartik K. Agaram2016-09-151-1/+28
* 3357 - multi-ary 'append'Kartik K. Agaram2016-09-151-33/+36
* 3356Kartik K. Agaram2016-09-151-10/+10
* 3344Kartik K. Agaram2016-09-121-1/+0
* 3343Kartik K. Agaram2016-09-121-15/+0
* 3341Kartik K. Agaram2016-09-121-13/+13
* 3338Kartik K. Agaram2016-09-121-1/+1
* 3337 - first use of type abbreviations: textKartik K. Agaram2016-09-121-123/+123
* 3324 - completely redo type abbreviationsKartik K. Agaram2016-09-111-0/+1
* 3186 - handle 'new-buffer' without ingredientsKartik K. Agaram2016-08-141-0/+14
* 3155Kartik K. Agaram2016-07-271-2/+2
* 3055Kartik K. Agaram2016-06-131-0/+1269
n> void cmd_join_shows_message_when_disconnecting(void **state) { test_with_connection_status(JABBER_DISCONNECTING); } void cmd_join_shows_message_when_connecting(void **state) { test_with_connection_status(JABBER_CONNECTING); } void cmd_join_shows_message_when_disconnected(void **state) { test_with_connection_status(JABBER_DISCONNECTED); } void cmd_join_shows_error_message_when_invalid_room_jid(void **state) { gchar *args[] = { "//@@/", NULL }; will_return(connection_get_status, JABBER_CONNECTED); expect_cons_show_error("Specified room has incorrect format."); expect_cons_show(""); gboolean result = cmd_join(NULL, CMD_JOIN, args); assert_true(result); } void cmd_join_uses_account_mucservice_when_no_service_specified(void **state) { char *account_name = "an_account"; char *room = "room"; char *nick = "bob"; char *account_service = "conference.server.org"; char *expected_room = "room@conference.server.org"; gchar *args[] = { room, "nick", nick, NULL }; ProfAccount *account = account_new(account_name, "user@server.org", NULL, NULL, TRUE, NULL, 0, "laptop", NULL, NULL, 0, 0, 0, 0, 0, account_service, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); muc_init(); will_return(connection_get_status, JABBER_CONNECTED); will_return(session_get_account_name, account_name); expect_string(accounts_get_account, name, account_name); will_return(accounts_get_account, account); expect_string(presence_join_room, room, expected_room); expect_string(presence_join_room, nick, nick); expect_value(presence_join_room, passwd, NULL); gboolean result = cmd_join(NULL, CMD_JOIN, args); assert_true(result); } void cmd_join_uses_supplied_nick(void **state) { char *account_name = "an_account"; char *room = "room@conf.server.org"; char *nick = "bob"; gchar *args[] = { room, "nick", nick, NULL }; ProfAccount *account = account_new(account_name, "user@server.org", NULL, NULL, TRUE, NULL, 0, "laptop", NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); muc_init(); will_return(connection_get_status, JABBER_CONNECTED); will_return(session_get_account_name, account_name); expect_string(accounts_get_account, name, account_name); will_return(accounts_get_account, account); expect_string(presence_join_room, room, room); expect_string(presence_join_room, nick, nick); expect_value(presence_join_room, passwd, NULL); gboolean result = cmd_join(NULL, CMD_JOIN, args); assert_true(result); } void cmd_join_uses_account_nick_when_not_supplied(void **state) { char *account_name = "an_account"; char *room = "room2@conf.server.org"; char *account_nick = "a_nick"; gchar *args[] = { room, NULL }; ProfAccount *account = account_new(account_name, "user@server.org", NULL, NULL, TRUE, NULL, 0, "laptop", NULL, NULL, 0, 0, 0, 0, 0, NULL, account_nick, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); muc_init(); will_return(connection_get_status, JABBER_CONNECTED); will_return(session_get_account_name, account_name); expect_string(accounts_get_account, name, account_name); will_return(accounts_get_account, account); expect_string(presence_join_room, room, room); expect_string(presence_join_room, nick, account_nick); expect_value(presence_join_room, passwd, NULL); gboolean result = cmd_join(NULL, CMD_JOIN, args); assert_true(result); } void cmd_join_uses_password_when_supplied(void **state) { char *account_name = "an_account"; char *room = "room"; char *password = "a_password"; char *account_nick = "a_nick"; char *account_service = "a_service"; char *expected_room = "room@a_service"; gchar *args[] = { room, "password", password, NULL }; ProfAccount *account = account_new(account_name, "user@server.org", NULL, NULL, TRUE, NULL, 0, "laptop", NULL, NULL, 0, 0, 0, 0, 0, account_service, account_nick, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); muc_init(); will_return(connection_get_status, JABBER_CONNECTED); will_return(session_get_account_name, account_name); expect_string(accounts_get_account, name, account_name); will_return(accounts_get_account, account); expect_string(presence_join_room, room, expected_room); expect_string(presence_join_room, nick, account_nick); expect_value(presence_join_room, passwd, password); gboolean result = cmd_join(NULL, CMD_JOIN, args); assert_true(result); }