From 947fe3f6bd96e006c550955ce4acb14e74e2615f Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 9 Oct 2015 11:02:07 +0530 Subject: [PATCH 1/2] Added ommited words in comment --- auto_tests/messenger_test.c | 4 ++-- 1 file 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) if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG) ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len); */ -/* this will error if the original m_addfriend_norequest() failed */ +/* this will give an error if the original m_addfriend_norequest() failed */ /* if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, good_len) != FAERR_ALREADYSENT) ck_abort_msg("m_addfriend did NOT catch adding a friend we already have.\n" "(this can be caused by the error of m_addfriend_norequest in" @@ -144,7 +144,7 @@ START_TEST(test_m_addfriend) if(m_addfriend(m, (uint8_t *)good_id_b, (uint8_t *)bad_data, bad_len) != FAERR_NOMESSAGE) ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", bad_len); */ -/* this should REALLY error */ +/* this should REALLY give an error */ /* * TODO: validate client_id in m_addfriend? if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) From 580726c7df757baffaa519a0312207246fabb873 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Mon, 12 Oct 2015 12:04:52 +0530 Subject: [PATCH 2/2] Changed gramatically incorrect comment in messenger_test --- auto_tests/messenger_test.c | 4 ++-- 1 file 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) if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG) ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len); */ -/* this will give an error if the original m_addfriend_norequest() failed */ +/* this will return an error if the original m_addfriend_norequest() failed */ /* if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, good_len) != FAERR_ALREADYSENT) ck_abort_msg("m_addfriend did NOT catch adding a friend we already have.\n" "(this can be caused by the error of m_addfriend_norequest in" @@ -144,7 +144,7 @@ START_TEST(test_m_addfriend) if(m_addfriend(m, (uint8_t *)good_id_b, (uint8_t *)bad_data, bad_len) != FAERR_NOMESSAGE) ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", bad_len); */ -/* this should REALLY give an error */ +/* this should REALLY return an error */ /* * TODO: validate client_id in m_addfriend? if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0)