From 1c71d3e3cd593e69e04b200a968df3291c20b2de Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 5 Jul 2012 19:52:08 +0100 Subject: add simple insert test when an a is found in teh input stream --- test/inputstream.c | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } } -- cgit v1.2.3