Skip to content

Commit

Permalink
Put diagnostic formatting back.
Browse files Browse the repository at this point in the history
These are deliberately on two lines and lined up to make visually comparing the
values easy on the eyes.
  • Loading branch information
schwern committed Apr 19, 2017
1 parent a919da4 commit c17a49a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions t/tap.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ int is_str(const char* have, const char* want, const char *message, ...) {
do_test( test, message, args );

if( !test ) {
diag("have: %s, want: %s", have, want);
diag("have: %s", have);
diag("want: %s", want);
}

va_end(args);
Expand All @@ -104,7 +105,9 @@ int is_Int64(const Int64 have, const Int64 want, const char *name, ...) {
do_test( test, name, args );

if( !test ) {
diag("have: %"PRId64" want: %"PRId64" diff: %"PRId64, have, want, have-want);
diag("have: %"PRId64, have);
diag("want: %"PRId64, want);
diag("diff: %"PRId64, have-want);
}

va_end(args);
Expand Down

0 comments on commit c17a49a

Please sign in to comment.