@@ -217,6 +217,13 @@ namespace lsp
217217 memcpy (call->indices .t , vt, n * sizeof (obj::index_t ));
218218 memcpy (call->indices .n , vn, n * sizeof (obj::index_t ));
219219
220+ printf (" #%04d: f " , int (vCalls.size () - 1 ));
221+ for (size_t i=0 ; i<n; ++i)
222+ {
223+ printf (" %d/%d/%d " , int (vv[i]), int (vt[i]), int (vn[i]));
224+ }
225+ printf (" \n " );
226+
220227 return STATUS_OK;
221228 }
222229
@@ -370,7 +377,7 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
370377 int (i), int (ca->indices .count ), int (cb->indices .count ));
371378 return i;
372379 }
373- for (size_t j=0 ; i <ca->indices .count ; ++i )
380+ for (size_t j=0 ; j <ca->indices .count ; ++j )
374381 {
375382 if (ca->indices .v [j] != cb->indices .v [j])
376383 {
@@ -379,7 +386,7 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
379386 return i;
380387 }
381388 }
382- for (size_t j=0 ; i <ca->indices .count ; ++i )
389+ for (size_t j=0 ; j <ca->indices .count ; ++j )
383390 {
384391 if (ca->indices .t [j] != cb->indices .t [j])
385392 {
@@ -388,7 +395,7 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
388395 return i;
389396 }
390397 }
391- for (size_t j=0 ; i <ca->indices .count ; ++i )
398+ for (size_t j=0 ; j <ca->indices .count ; ++j )
392399 {
393400 if (ca->indices .n [j] != cb->indices .n [j])
394401 {
@@ -406,7 +413,7 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
406413 int (i), int (ca->indices .count ), int (cb->indices .count ));
407414 return i;
408415 }
409- for (size_t j=0 ; i <ca->indices .count ; ++i )
416+ for (size_t j=0 ; j <ca->indices .count ; ++j )
410417 {
411418 if (ca->indices .v [j] != cb->indices .v [j])
412419 {
@@ -425,7 +432,7 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
425432 return i;
426433 }
427434
428- for (size_t j=0 ; i <ca->indices .count ; ++i )
435+ for (size_t j=0 ; j <ca->indices .count ; ++j )
429436 {
430437 if (ca->indices .v [j] != cb->indices .v [j])
431438 {
@@ -434,7 +441,7 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
434441 return i;
435442 }
436443 }
437- for (size_t j=0 ; i <ca->indices .count ; ++i )
444+ for (size_t j=0 ; j <ca->indices .count ; ++j )
438445 {
439446 if (ca->indices .t [j] != cb->indices .t [j])
440447 {
@@ -494,14 +501,12 @@ UTEST_BEGIN("runtime.fmt.obj", compressor)
494501
495502 UTEST_MAIN
496503 {
497- printf (" Testing compression of complicated OBJ file ...\n " );
504+ printf (" Testing compression of complicated OBJ files ...\n " );
498505 test_compress_obj_file (" fmt/obj/parking.obj" , " parking" );
499- printf (" Testing compression of complicated OBJ file...\n " );
500506 test_compress_obj_file (" fmt/obj/coliseum.obj" , " coliseum" );
501- printf (" Testing compression of complicated OBJ file...\n " );
502507 test_compress_obj_file (" fmt/obj/forest.obj" , " forest" );
503- printf (" Testing compression of complicated OBJ file...\n " );
504508 test_compress_obj_file (" fmt/obj/cooling-tower.obj" , " cooling-tower" );
509+ test_compress_obj_file (" fmt/obj/church.obj" , " church" );
505510 }
506511
507512UTEST_END
0 commit comments