summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2019-08-10 12:29:16 -0400
committerAllen Winter <allen.winter@kdab.com>2019-08-10 12:29:16 -0400
commite05c4b2ac6c402866b536d7d46b6ca047786ec29 (patch)
tree0e066eba24815fc2615afaf71628c084aa150f97
parent5fbb72521ce727cd615b69f64a1b10fb226ab833 (diff)
downloadlibical-git-e05c4b2ac6c402866b536d7d46b6ca047786ec29.tar.gz
src/test/regression.c - cleanup after cherry-pick
-rw-r--r--src/test/regression.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/test/regression.c b/src/test/regression.c
index a7b6e5cf..d9dc1424 100644
--- a/src/test/regression.c
+++ b/src/test/regression.c
@@ -4403,39 +4403,6 @@ void test_icalvalue_decode_ical_string(void)
ok("Properly decoded", (strcmp(buff, "a\\") == 0));
}
-static int test_icalarray_sort_compare_char(const void* p1, const void* p2) {
-
- char c1 = *((char*)p1);
- char c2 = *((char*)p2);
-
- return (c1 < c2) ? -1 : ((c1 > c2) ? 1 : 0);
-}
-
-void test_icalarray_sort(void)
-{
- /* this test is based on the work from the PDCLib project */
-
- char presort[] = { "shreicnyjqpvozxmbt" };
- char sorted1[] = { "bcehijmnopqrstvxyz" };
- unsigned int i;
-
- icalarray * array = icalarray_new(1, 2);
-
- for (i = 0; i < sizeof(presort)-1; i++) {
- icalarray_append(array, &presort[i]);
- }
-
- icalarray_sort(array, test_icalarray_sort_compare_char);
-
- for (i = 0; i < sizeof(presort)-1; i++) {
- void* pItem = icalarray_element_at(array, i);
- char c = *((char*)pItem);
- ok("icalarray_sort - item sorted as expected", c == sorted1[i]);
- }
-
- icalarray_free(array);
-}
-
void test_icalcomponent_normalize(void)
{
const char *calStr1 =
@@ -4645,8 +4612,6 @@ int main(int argc, char *argv[])
test_run("Test timezone from builtin", test_timezone_from_builtin, do_test, do_header);
test_run("Test icalvalue_decode_ical_string", test_icalvalue_decode_ical_string, do_test, do_header);
- test_run("Test icalarray_sort", test_icalarray_sort, do_test, do_header);
-
test_run("Test icalcomponent_normalize", test_icalcomponent_normalize, do_test, do_header);
/** OPTIONAL TESTS go here... **/