[list] Adds tests of the sort function

Sorts 100 random integers. Reports any out of order and returns an error code.
This commit is contained in:
Charlie Brej 2009-11-28 18:47:44 +00:00
parent a8c9973d67
commit 48b61807ba

View file

@ -363,8 +363,8 @@ main (int argc,
for (i = 0; i<100; i++)
{
value = malloc(sizeof(int));
*value = random() %100;
value = malloc (sizeof (int));
*value = random() % 100;
ply_list_append_data (list, (void *) value);
}