- Timestamp:
- Jun 12, 2015, 8:53:37 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/test/zlib.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/test/zlib.c
r38427 r38442 18 18 int main (int argc, char **argv) { 19 19 20 plan_tests ( 7);20 plan_tests (14); 21 21 22 22 diag ("libfits zlib.c tests"); … … 74 74 ok (zdn.total_out <= NTGT*sizeof(double), "output compressed size is good"); 75 75 76 char *tgtdata = (char *) tgtbuf; 76 77 if (VERBOSE) fprintf (stderr, "result: %d bytes\n", (int) zdn.total_out); 77 for (i = 0; VERBOSE && (i < zdn.total_out / sizeof(double)); i++) {78 fprintf (stderr, "%d : 0x%02hhx\n", i, tgt buf[i]);78 for (i = 0; VERBOSE && i < zdn.total_out; i++) { 79 fprintf (stderr, "%d : 0x%02hhx\n", i, tgtdata[i]); 79 80 } 80 81 } … … 164 165 ok (zdn.total_out <= NTGT*sizeof(double), "output compressed size is good"); 165 166 167 char *tgtdata = (char *) tgtbuf; 166 168 if (VERBOSE) fprintf (stderr, "result: %d bytes\n", (int) zdn.total_out); 167 for (i = 0; VERBOSE && (i < zdn.total_out / sizeof(double)); i++) {168 fprintf (stderr, "%d : 0x%02hhx\n", i, tgt buf[i]);169 for (i = 0; VERBOSE && (i < zdn.total_out); i++) { 170 fprintf (stderr, "%d : 0x%02hhx\n", i, tgtdata[i]); 169 171 } 170 172 }
Note:
See TracChangeset
for help on using the changeset viewer.
