This commit is contained in:
Nils O. Selåsdal
2025-07-16 00:10:44 +02:00
39 changed files with 773 additions and 91 deletions
+12
View File
@@ -5,6 +5,7 @@
START_TEST (test_strv_append)
{
struct UCStrv strv;
int rc;
@@ -22,9 +23,11 @@ START_TEST (test_strv_append)
uc_strv_destroy(&strv);
}
END_TEST
START_TEST (test_strv_clear)
{
struct UCStrv strv;
int rc;
@@ -38,9 +41,11 @@ START_TEST (test_strv_clear)
fail_if(strv.cnt != 0);
uc_strv_destroy(&strv);
}
END_TEST
START_TEST (test_strv_nocopy)
{
struct UCStrv strv;
char *str = strdup("string");
int rc;
@@ -54,9 +59,11 @@ START_TEST (test_strv_nocopy)
uc_strv_destroy(&strv);
}
END_TEST
START_TEST (test_strv_null_terminate)
{
struct UCStrv strv;
int rc;
@@ -73,9 +80,11 @@ START_TEST (test_strv_null_terminate)
uc_strv_destroy(&strv);
}
END_TEST
START_TEST (test_strv_append_all_copy)
{
struct UCStrv src;
struct UCStrv dst;
int rc;
@@ -97,9 +106,11 @@ START_TEST (test_strv_append_all_copy)
uc_strv_destroy(&src);
uc_strv_destroy(&dst);
}
END_TEST
START_TEST (test_strv_append_all_nocopy)
{
struct UCStrv src;
struct UCStrv dst;
int rc;
@@ -121,6 +132,7 @@ START_TEST (test_strv_append_all_nocopy)
uc_strv_destroy(&dst);
free(src.strings);
}
END_TEST
START_TEST (test_strv_reverse)