summaryrefslogtreecommitdiff
path: root/test/testrunner.pl
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2023-09-16 20:30:02 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2023-09-16 22:20:13 +0100
commitd0aa58c3647593044286a565294e94700c9a50a0 (patch)
tree0ee55ee5d231fb9d104b608412ea14b38e589080 /test/testrunner.pl
parent873ed6e236f7669afd3ef44259c34addc6dc95b6 (diff)
downloadlibhubbub-d0aa58c3647593044286a565294e94700c9a50a0.tar.gz
libhubbub-d0aa58c3647593044286a565294e94700c9a50a0.tar.bz2
tests/tokenizer[23]: fix handling of CHARACTER tokens
Where a CHARACTER token is emitted but the expected data is shorter than the data in the token, we want to consume the expected data and then process the remaining token data as if it were emitted separately. Sadly this didn't happen as we never initialised the replacement token correctly. Make this so, and also tell the compiler that the recursive call is actually a tail call so it can optimise it appropriately.
Diffstat (limited to 'test/testrunner.pl')
0 files changed, 0 insertions, 0 deletions