Mercurial > irccd
comparison tests/test-channel.c @ 971:f365e5be1261
misc: remove more stdbool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 03 Feb 2021 15:03:12 +0100 |
parents | 533639ec5e9c |
children | 3ea3361f0fc7 |
comparison
equal
deleted
inserted
replaced
970:c745bb6721fd | 971:f365e5be1261 |
---|---|
25 basics_add(void) | 25 basics_add(void) |
26 { | 26 { |
27 struct irc_channel *ch; | 27 struct irc_channel *ch; |
28 struct irc_channel_user *user; | 28 struct irc_channel_user *user; |
29 | 29 |
30 ch = irc_channel_new("#test", NULL, true); | 30 ch = irc_channel_new("#test", NULL, 1); |
31 GREATEST_ASSERT_STR_EQ("#test", ch->name); | 31 GREATEST_ASSERT_STR_EQ("#test", ch->name); |
32 GREATEST_ASSERT_STR_EQ("", ch->password); | 32 GREATEST_ASSERT_STR_EQ("", ch->password); |
33 GREATEST_ASSERT(ch->joined); | 33 GREATEST_ASSERT(ch->joined); |
34 | 34 |
35 irc_channel_add(ch, "markand", 'o', '@'); | 35 irc_channel_add(ch, "markand", 'o', '@'); |
77 basics_remove(void) | 77 basics_remove(void) |
78 { | 78 { |
79 struct irc_channel *ch; | 79 struct irc_channel *ch; |
80 struct irc_channel_user *user; | 80 struct irc_channel_user *user; |
81 | 81 |
82 ch = irc_channel_new("#test", NULL, true); | 82 ch = irc_channel_new("#test", NULL, 1); |
83 | 83 |
84 irc_channel_add(ch, "markand", 'o', '@'); | 84 irc_channel_add(ch, "markand", 'o', '@'); |
85 irc_channel_add(ch, "jean", 0, 0); | 85 irc_channel_add(ch, "jean", 0, 0); |
86 irc_channel_add(ch, "zoe", 0, 0); | 86 irc_channel_add(ch, "zoe", 0, 0); |
87 | 87 |
113 basics_update(void) | 113 basics_update(void) |
114 { | 114 { |
115 struct irc_channel *ch; | 115 struct irc_channel *ch; |
116 struct irc_channel_user *user; | 116 struct irc_channel_user *user; |
117 | 117 |
118 ch = irc_channel_new("#test", NULL, true); | 118 ch = irc_channel_new("#test", NULL, 1); |
119 | 119 |
120 irc_channel_add(ch, "markand", 'o', '@'); | 120 irc_channel_add(ch, "markand", 'o', '@'); |
121 irc_channel_add(ch, "jean", 0, 0); | 121 irc_channel_add(ch, "jean", 0, 0); |
122 irc_channel_add(ch, "zoe", 0, 0); | 122 irc_channel_add(ch, "zoe", 0, 0); |
123 | 123 |