Skip to content
Snippets Groups Projects
Commit 5fbdd49b authored by Pierre LALET's avatar Pierre LALET
Browse files

New defrag() test

parent 3abd8d85
No related branches found
No related tags found
No related merge requests found
...@@ -4876,6 +4876,12 @@ for p in ffrags: ...@@ -4876,6 +4876,12 @@ for p in ffrags:
assert plen == payloadlen assert plen == payloadlen
= defrag()
nonfrag, unfrag, badfrag = defrag(frags)
assert not nonfrag
assert not badfrag
assert len(unfrag) == 1
= defragment() = defragment()
defrags = defragment(frags) defrags = defragment(frags)
* we should have one single packet * we should have one single packet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment