diff options
author | Luca Deri <deri@ntop.org> | 2019-09-27 13:42:41 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-09-27 13:42:41 +0200 |
commit | 7c788f0779c017f17110bff90da5467dece85638 (patch) | |
tree | 189153d156a758a2f9d779676d617ab4e69cbab1 /example/ndpiReader.c | |
parent | 50996469383aa66f3d1686621d5ba97a94765c9d (diff) |
Fixed partial string matches
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 1da0d3b5c..7a13b90e2 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3462,8 +3462,7 @@ void automataUnitTest() { assert(ndpi_add_string_to_automa(automa, "hello") == 0); assert(ndpi_add_string_to_automa(automa, "world") == 0); ndpi_finalize_automa(automa); - assert(ndpi_match_string(automa, "This is the wonderful world of nDPI") == 0); - + assert(ndpi_match_string(automa, "This is the wonderful world of nDPI") == 1); ndpi_free_automa(automa); } |