summaryrefslogtreecommitdiff
path: root/tests/t0403-lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0403-lists.c')
-rw-r--r--tests/t0403-lists.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/t0403-lists.c b/tests/t0403-lists.c
index daee7af94..f971ce419 100644
--- a/tests/t0403-lists.c
+++ b/tests/t0403-lists.c
@@ -13,8 +13,7 @@ BEGIN_TEST(list_timesort_test)
#define TEST_SORTED() \
previous_time = INT_MAX;\
- for (n = list.head; n != NULL; n = n->next)\
- {\
+ for (n = list.head; n != NULL; n = n->next) {\
must_be_true(n->commit->commit_time <= previous_time);\
previous_time = n->commit->commit_time;\
}
@@ -22,13 +21,11 @@ BEGIN_TEST(list_timesort_test)
memset(&list, 0x0, sizeof(git_commit_list));
srand((unsigned int)time(NULL));
- for (t = 0; t < 20; ++t)
- {
+ for (t = 0; t < 20; ++t) {
const int test_size = rand() % 500 + 500;
// Purely random sorting test
- for (i = 0; i < test_size; ++i)
- {
+ for (i = 0; i < test_size; ++i) {
git_commit *c = git__malloc(sizeof(git_commit));
c->commit_time = (time_t)rand();
@@ -41,8 +38,7 @@ BEGIN_TEST(list_timesort_test)
}
// Try to sort list with all dates equal.
- for (i = 0; i < 200; ++i)
- {
+ for (i = 0; i < 200; ++i) {
git_commit *c = git__malloc(sizeof(git_commit));
c->commit_time = 0;