mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 22:56:21 +00:00
Moved new chat win events to client events module
This commit is contained in:
@@ -15,8 +15,8 @@ void cmd_win_shows_message_when_win_doesnt_exist(void **state)
|
||||
CommandHelp *help = malloc(sizeof(CommandHelp));
|
||||
gchar *args[] = { "3", NULL };
|
||||
|
||||
expect_value(ui_switch_win, i, 3);
|
||||
will_return(ui_switch_win, FALSE);
|
||||
expect_value(ui_switch_win_num, i, 3);
|
||||
will_return(ui_switch_win_num, FALSE);
|
||||
|
||||
expect_cons_show("Window 3 does not exist.");
|
||||
|
||||
@@ -31,8 +31,8 @@ void cmd_win_switches_to_given_win_when_exists(void **state)
|
||||
CommandHelp *help = malloc(sizeof(CommandHelp));
|
||||
gchar *args[] = { "12", NULL };
|
||||
|
||||
expect_value(ui_switch_win, i, 12);
|
||||
will_return(ui_switch_win, TRUE);
|
||||
expect_value(ui_switch_win_num, i, 12);
|
||||
will_return(ui_switch_win_num, TRUE);
|
||||
|
||||
gboolean result = cmd_win(args, *help);
|
||||
assert_true(result);
|
||||
|
||||
Reference in New Issue
Block a user