diff options
author | Soumitra <agarwalsoumitra1504@gmail.com> | 2015-10-12 12:04:52 +0530 |
---|---|---|
committer | Eniz Vukovic <eniz_vukovic@hotmail.com> | 2015-10-23 22:54:22 +0200 |
commit | fc25ca11d10725974737e0abd9ada5e7d4d037ff (patch) | |
tree | 86e9b36821e74163edc16a54114d0b0a91b7cfca /auto_tests/messenger_test.c | |
parent | 21b45b8b741cb407cacb477c2f301abdc0215b7a (diff) |
Changed gramatically incorrect comment in messenger_test
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r-- | auto_tests/messenger_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c index ad5d40ae..2b0b2519 100644 --- a/auto_tests/messenger_test.c +++ b/auto_tests/messenger_test.c | |||
@@ -135,7 +135,7 @@ START_TEST(test_m_addfriend) | |||
135 | if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG) | 135 | if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG) |
136 | ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len); | 136 | ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len); |
137 | */ | 137 | */ |
138 | /* this will give an error if the original m_addfriend_norequest() failed */ | 138 | /* this will return an error if the original m_addfriend_norequest() failed */ |
139 | /* if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, good_len) != FAERR_ALREADYSENT) | 139 | /* if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, good_len) != FAERR_ALREADYSENT) |
140 | ck_abort_msg("m_addfriend did NOT catch adding a friend we already have.\n" | 140 | ck_abort_msg("m_addfriend did NOT catch adding a friend we already have.\n" |
141 | "(this can be caused by the error of m_addfriend_norequest in" | 141 | "(this can be caused by the error of m_addfriend_norequest in" |
@@ -144,7 +144,7 @@ START_TEST(test_m_addfriend) | |||
144 | if(m_addfriend(m, (uint8_t *)good_id_b, (uint8_t *)bad_data, bad_len) != FAERR_NOMESSAGE) | 144 | if(m_addfriend(m, (uint8_t *)good_id_b, (uint8_t *)bad_data, bad_len) != FAERR_NOMESSAGE) |
145 | ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", bad_len); | 145 | ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", bad_len); |
146 | */ | 146 | */ |
147 | /* this should REALLY give an error */ | 147 | /* this should REALLY return an error */ |
148 | /* | 148 | /* |
149 | * TODO: validate client_id in m_addfriend? | 149 | * TODO: validate client_id in m_addfriend? |
150 | if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) | 150 | if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) |