summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/core/test-core-string.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp
index b6072489a..e2b4be36a 100644
--- a/tests/unit/core/test-core-string.cpp
+++ b/tests/unit/core/test-core-string.cpp
@@ -157,17 +157,33 @@ TEST(CoreString, Strndup)
/*
* Tests functions:
* string_tolower
- * string_toupper
*/
-TEST(CoreString, Case)
+TEST(CoreString, ToLower)
{
char *str;
str = strdup ("ABC");
+ string_tolower (NULL);
string_tolower (str);
STRCMP_EQUAL("abc", str);
+
+ free (str);
+}
+
+/*
+ * Tests functions:
+ * string_toupper
+ */
+
+TEST(CoreString, Case)
+{
+ char *str;
+
+ str = strdup ("abc");
+
+ string_toupper (NULL);
string_toupper (str);
STRCMP_EQUAL("ABC", str);