Commit a6176167 authored by dcw's avatar dcw

reformatted slightly

parent 31a62e63
......@@ -8,16 +8,13 @@ intlist int1, int2, int3;
test_intlist()
{
int1 = intlist_null();
int2 = intlist_cons( 10, int1 );
int2 = intlist_cons( 11, int1 );
int3 = intlist_cons( 20, int2 );
printf( "intlists:\n" );
printf( "\n int1: " );
print_intlist( stdout, int1 );
printf( "\n int2: " );
print_intlist( stdout, int2 );
printf( "\n int3: " );
print_intlist( stdout, int3 );
printf( "\n int1: " ); print_intlist( stdout, int1 );
printf( "\n int2: " ); print_intlist( stdout, int2 );
printf( "\n int3: " ); print_intlist( stdout, int3 );
printf( "\n\n" );
}
......@@ -32,14 +29,10 @@ test_illist()
il4 = illist_cons( int3, il3 );
printf( "illists:\n" );
printf( "\n il1: " );
print_illist( stdout, il1 );
printf( "\n il2: " );
print_illist( stdout, il2 );
printf( "\n il3: " );
print_illist( stdout, il3 );
printf( "\n il4: " );
print_illist( stdout, il4 );
printf( "\n il1: " ); print_illist( stdout, il1 );
printf( "\n il2: " ); print_illist( stdout, il2 );
printf( "\n il3: " ); print_illist( stdout, il3 );
printf( "\n il4: " ); print_illist( stdout, il4 );
printf( "\n\n" );
}
......@@ -56,18 +49,12 @@ test_idtree()
id6 = idtree_node( id4, id5 );
printf( "idtrees:\n" );
printf( "\n id1: " );
print_idtree( stdout, id1 );
printf( "\n id2: " );
print_idtree( stdout, id2 );
printf( "\n id3: " );
print_idtree( stdout, id3 );
printf( "\n id4: " );
print_idtree( stdout, id4 );
printf( "\n id5: " );
print_idtree( stdout, id5 );
printf( "\n id6: " );
print_idtree( stdout, id6 );
printf( "\n id1: " ); print_idtree( stdout, id1 );
printf( "\n id2: " ); print_idtree( stdout, id2 );
printf( "\n id3: " ); print_idtree( stdout, id3 );
printf( "\n id4: " ); print_idtree( stdout, id4 );
printf( "\n id5: " ); print_idtree( stdout, id5 );
printf( "\n id6: " ); print_idtree( stdout, id6 );
printf( "\n\n" );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment