diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/inputstream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/inputstream.c b/test/inputstream.c index 4c37098..d8c6454 100644 --- a/test/inputstream.c +++ b/test/inputstream.c @@ -61,6 +61,11 @@ int main(int argc, char **argv) while (parserutils_inputstream_peek(stream, 0, &c, &clen) != PARSERUTILS_NEEDDATA) { parserutils_inputstream_advance(stream, clen); + if (*c == 'a') { + assert(parserutils_inputstream_insert(stream, + (const uint8_t *) "hello!!!", + SLEN("hello!!!")) == PARSERUTILS_OK); + } } } |