GUACAMOLE-637: Correct grammar of documentation for guac_strl*() unit tests.

This commit is contained in:
Michael Jumper 2019-01-23 18:51:53 -08:00
parent b7761e9a2e
commit 9fb713d804
3 changed files with 20 additions and 18 deletions

View File

@ -24,10 +24,10 @@
#include <string.h> #include <string.h>
/** /**
* Verify guac_strlcat() behavior when string fits buffer without truncation. * Verify guac_strlcat() behavior when the string fits the buffer without
* The return value of each call should be the length of the resulting string. * truncation. The return value of each call should be the length of the
* Each resulting string should contain the full result of the contatenation, * resulting string. Each resulting string should contain the full result of
* including null terminator. * the contatenation, including null terminator.
*/ */
void test_string__strlcat() { void test_string__strlcat() {
@ -66,11 +66,11 @@ void test_string__strlcat() {
} }
/** /**
* Verify guac_strlcat() behavior when string must be truncated to fit buffer. * Verify guac_strlcat() behavior when the string must be truncated to fit the
* The return value of each call should be the length that would result from * buffer. The return value of each call should be the length that would result
* concatenating the strings given an infinite buffer, however only as many * from concatenating the strings given an infinite buffer, however only as
* characters as can fit should be appended to the string within the buffer, * many characters as can fit should be appended to the string within the
* and the buffer should be null-terminated. * buffer, and the buffer should be null-terminated.
*/ */
void test_string__strlcat_truncate() { void test_string__strlcat_truncate() {

View File

@ -24,7 +24,8 @@
#include <string.h> #include <string.h>
/** /**
* Verify guac_strlcpy() behavior when string fits buffer without truncation. * Verify guac_strlcpy() behavior when the string fits the buffer without
* truncation.
*/ */
void test_string__strlcpy() { void test_string__strlcpy() {
@ -53,7 +54,8 @@ void test_string__strlcpy() {
} }
/** /**
* Verify guac_strlcpy() behavior when string must be truncated to fit buffer. * Verify guac_strlcpy() behavior when the string must be truncated to fit the
* buffer.
*/ */
void test_string__strlcpy_truncate() { void test_string__strlcpy_truncate() {

View File

@ -45,10 +45,10 @@ const char* const empty_a_empty_b[] = { "", "A", "", "B" };
const char* const empty_x10[] = { "", "", "", "", "", "", "", "", "", "" }; const char* const empty_x10[] = { "", "", "", "", "", "", "", "", "", "" };
/** /**
* Verify guac_strljoin() behavior when string fits buffer without truncation. * Verify guac_strljoin() behavior when the string fits the buffer without
* The return value of each call should be the length of the resulting string. * truncation. The return value of each call should be the length of the
* Each resulting string should contain the full result of the join operation, * resulting string. Each resulting string should contain the full result of
* including null terminator. * the join operation, including null terminator.
*/ */
void test_string__strljoin() { void test_string__strljoin() {
@ -82,9 +82,9 @@ void test_string__strljoin() {
} }
/** /**
* Verify guac_strljoin() behavior when string must be truncated to fit buffer. * Verify guac_strljoin() behavior when the string must be truncated to fit the
* The return value of each call should be the length that would result from * buffer. The return value of each call should be the length that would result
* joining the strings given an infinite buffer, however only as many * from joining the strings given an infinite buffer, however only as many
* characters as can fit should be appended to the string within the buffer, * characters as can fit should be appended to the string within the buffer,
* and the buffer should be null-terminated. * and the buffer should be null-terminated.
*/ */