summaryrefslogtreecommitdiff
path: root/test/tokeniser2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tokeniser2.c')
-rw-r--r--test/tokeniser2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tokeniser2.c b/test/tokeniser2.c
index e56df33..e1f42f8 100644
--- a/test/tokeniser2.c
+++ b/test/tokeniser2.c
@@ -430,7 +430,9 @@ void token_handler(const hubbub_token *token, void *pw)
size_t len = min(token->data.character.len,
strlen(expstr + ctx->char_off));
- printf("'%.*s'\n", (int) token->data.character.len, gotstr);
+ printf("expected: '%s'\n", expstr + ctx->char_off);
+ printf(" got: '%.*s'\n",
+ (int) token->data.character.len, gotstr);
assert(strncmp(gotstr, expstr + ctx->char_off, len) == 0);