summaryrefslogtreecommitdiff
path: root/auto_tests/messenger_test.c
diff options
context:
space:
mode:
authorSoumitra <agarwalsoumitra1504@gmail.com>2015-10-09 11:02:07 +0530
committerSoumitra <agarwalsoumitra1504@gmail.com>2015-10-09 11:02:07 +0530
commit947fe3f6bd96e006c550955ce4acb14e74e2615f (patch)
treed6bd4553f1832c69510cc4282383bbbefd86d118 /auto_tests/messenger_test.c
parent6120b0e0bb865ab196cdf717a4829a3f83ef1e7b (diff)
Added ommited words in comment
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r--auto_tests/messenger_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c
index 2a813c9b..ad5d40ae 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 error if the original m_addfriend_norequest() failed */ 138/* this will give 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 error */ 147/* this should REALLY give an error */
148/* 148/*
149 * TODO: validate client_id in m_addfriend? 149 * TODO: validate client_id in m_addfriend?
150if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) 150if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0)